mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-23 01:27: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 {
|
publishing {
|
||||||
|
def config = configurations.getByName("library")
|
||||||
publications {
|
publications {
|
||||||
maven(MavenPublication) {
|
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)
|
from(components.java)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user