mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 12:05:14 +01:00
Mark runtime dependency as provided in pom.
This commit is contained in:
parent
ee5408764f
commit
bae909a9e8
10
build.gradle
10
build.gradle
@ -104,6 +104,16 @@ publishing {
|
|||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
maven(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
|
|
||||||
|
pom.withXml {
|
||||||
|
asNode().dependencies.'*'.findAll() {
|
||||||
|
it.scope.text() == 'runtime' && project.configurations.implementation.allDependencies.find { dep ->
|
||||||
|
dep.name == it.artifactId.text()
|
||||||
|
}
|
||||||
|
}.each() {
|
||||||
|
it.scope*.value = 'provided'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
Loading…
Reference in New Issue
Block a user