add library dependencies to pom

This commit is contained in:
Taah 2022-04-10 16:36:37 -07:00
parent 1dc0e05715
commit f8d25491d5

View File

@ -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)
}
}