Skip to content

Commit

Permalink
fix: forge jarinjar leads to duplicate module on classpath for depend…
Browse files Browse the repository at this point in the history
…ants
  • Loading branch information
klikli-dev committed Jul 10, 2024
1 parent 2719b36 commit 803df6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,15 @@ publishing {
connection = 'scm:git:ssh:git@github.com:klikli-dev/modonomicon.git'
url = 'https://github.com/klikli-dev/modonomicon'
}
//remove commonmark from the pom, otherwise forge will include it in the classpath twice
//once from JiJ, once as transitive dep.
withXml {
asNode().dependencies.dependency.each { dep ->
if(dep.groupId.text() == 'org.commonmark') {
assert dep.parent().remove(dep)
}
}
}
}
}
}
Expand Down

0 comments on commit 803df6a

Please sign in to comment.