Add a new capability based on the base archive name
This commit is contained in:
parent
fc43dd5a3c
commit
5e833efb61
|
|
@ -35,6 +35,7 @@ repositories {
|
||||||
// Read more about capabilities here: https://docs.gradle.org/current/userguide/component_capabilities.html#sec:declaring-additional-capabilities-for-a-local-component
|
// 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 ->
|
['apiElements', 'runtimeElements', 'sourcesElements', 'javadocElements'].each { variant ->
|
||||||
configurations."$variant".outgoing {
|
configurations."$variant".outgoing {
|
||||||
|
capability("$group:${base.archivesName.get()}:$version")
|
||||||
capability("$group:$mod_id-${project.name}-${minecraft_version}:$version")
|
capability("$group:$mod_id-${project.name}-${minecraft_version}:$version")
|
||||||
capability("$group:$mod_id:$version")
|
capability("$group:$mod_id:$version")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user