forked from mirrors/cobblemon
Fix publication pom to include transitive dependencies now in JIJ
This commit is contained in:
@@ -87,6 +87,28 @@ dependencies {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications.named<MavenPublication>(project.name) {
|
||||||
|
pom.withXml {
|
||||||
|
val root = asNode()
|
||||||
|
val depsNode = (root["dependencies"] as? groovy.util.NodeList)
|
||||||
|
?.firstOrNull() as? groovy.util.Node
|
||||||
|
?: root.appendNode("dependencies")
|
||||||
|
|
||||||
|
configurations.getByName("include").allDependencies
|
||||||
|
.filterIsInstance<ExternalModuleDependency>()
|
||||||
|
.forEach { dep ->
|
||||||
|
depsNode.appendNode("dependency").apply {
|
||||||
|
appendNode("groupId", dep.group)
|
||||||
|
appendNode("artifactId", dep.name)
|
||||||
|
appendNode("version", dep.version)
|
||||||
|
appendNode("scope", "compile")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
// The AW file is needed in :fabric project resources when the game is run.
|
// The AW file is needed in :fabric project resources when the game is run.
|
||||||
val copyAccessWidener by registering(Copy::class) {
|
val copyAccessWidener by registering(Copy::class) {
|
||||||
|
|||||||
Reference in New Issue
Block a user