mirror of
https://github.com/plexusorg/Plex.git
synced 2025-01-03 22:08:22 +00:00
add library dependencies to pom
This commit is contained in:
parent
1dc0e05715
commit
f8d25491d5
1 changed files with 11 additions and 0 deletions
11
build.gradle
11
build.gradle
|
@ -120,8 +120,19 @@ java {
|
|||
}
|
||||
|
||||
publishing {
|
||||
def config = configurations.getByName("library")
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
pom.withXml {
|
||||
config.getAllDependencies().each { dependency ->
|
||||
asNode().dependencies[0].appendNode("dependency").with {
|
||||
it.appendNode("groupId", dependency.group)
|
||||
it.appendNode("artifactId", dependency.name)
|
||||
it.appendNode("version", dependency.version)
|
||||
it.appendNode("scope", "provided")
|
||||
}
|
||||
}
|
||||
}
|
||||
from(components.java)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue