mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
add library dependencies to pom
This commit is contained in:
parent
1dc0e05715
commit
f8d25491d5
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 New Issue
Block a user