Update build.gradle

This commit is contained in:
Telesphoreo 2022-04-12 16:38:19 -05:00
parent f0c646688e
commit 6c09905a8d

View File

@ -131,12 +131,11 @@ java {
} }
publishing { publishing {
def config = configurations.getByName("library")
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {
pom.withXml { pom.withXml {
def dependenciesNode = asNode().appendNode("dependencies") def dependenciesNode = asNode().appendNode("dependencies")
config.getAllDependencies().each { dependency -> configurations.getByName("library").getAllDependencies().each { dependency ->
dependenciesNode.appendNode("dependency").with { dependenciesNode.appendNode("dependency").with {
it.appendNode("groupId", dependency.group) it.appendNode("groupId", dependency.group)
it.appendNode("artifactId", dependency.name) it.appendNode("artifactId", dependency.name)
@ -155,7 +154,6 @@ publishing {
} }
artifacts = [shadowJar] artifacts = [shadowJar]
} }
} }
repositories { repositories {
maven { maven {