Skip to content

Commit

Permalink
stop using kotlin in buildSrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredlll08 committed Aug 2, 2022
1 parent 0a8ef2f commit ee0a781
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,11 @@ class JavaConventionsPlugin implements Plugin<Project> {

if (project.name.equals("Forge")) {
pom.withXml {
val depNodeList = asNode()["dependencies"] as NodeList
depNodeList.map { it as Node }.forEach { depList ->
val deps = depList.getAt(QName("http://maven.apache.org/POM/4.0.0", "dependency"))
deps.map { it as Node }.forEach { dep ->
dep.parent().remove(dep)
}

// Go through all the dependencies.
asNode().dependencies.dependency.each { dep ->

assert dep.parent().remove(dep)
}
}
}
Expand Down

0 comments on commit ee0a781

Please sign in to comment.