Skip to content

Commit

Permalink
build: Fix dependency capabilities, whatever they even are
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed May 29, 2024
1 parent 71a89b0 commit 2f93a82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/groovy/multiloader-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ dependencies {
// Read more about capabilities here: https://docs.gradle.org/current/userguide/component_capabilities.html#sec:declaring-additional-capabilities-for-a-local-component
['apiElements', 'runtimeElements', 'sourcesElements', 'javadocElements'].each { variant ->
configurations."$variant".outgoing {
capability("$group:$mod_id-${project.name}:$version")
capability("$group:$mod_id:$version")
capability("$group:${mod_id.replace('_', '-')}-${project.name}:$version")
capability("$group:${mod_id.replace('_', '-')}:$version")
}
publishing.publications.configureEach {
suppressPomMetadataWarningsFor(variant)
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/multiloader-loader.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ configurations {
dependencies {
compileOnly(project("${project.parent?.path}:common")) {
capabilities {
requireCapability "$group:$mod_id"
requireCapability "$group:${mod_id.replace('_', '-')}"
}
}
commonJava project(path: "${project.parent?.path}:common", configuration: 'commonJava')
Expand Down

0 comments on commit 2f93a82

Please sign in to comment.