diff --git a/buildSrc/src/main/groovy/multiloader-common.gradle b/buildSrc/src/main/groovy/multiloader-common.gradle index e76cb94..7242da3 100644 --- a/buildSrc/src/main/groovy/multiloader-common.gradle +++ b/buildSrc/src/main/groovy/multiloader-common.gradle @@ -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) diff --git a/buildSrc/src/main/groovy/multiloader-loader.gradle b/buildSrc/src/main/groovy/multiloader-loader.gradle index 5703a1f..8894127 100644 --- a/buildSrc/src/main/groovy/multiloader-loader.gradle +++ b/buildSrc/src/main/groovy/multiloader-loader.gradle @@ -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')