Skip to content

Commit 2a86084

Browse files
committed
Don't publish Forge dependencies to Maven (fix #50)
1 parent 37ae431 commit 2a86084

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Forge/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,3 +320,17 @@ reobf {
320320
shadowJar {}
321321
}
322322

323+
publishing {
324+
publications {
325+
mavenJava(MavenPublication) {
326+
// ForgeGradle exports (broken) remapped dependencies, so just remove all of them
327+
// https://github.com/VazkiiMods/Botania/blob/87ef25381381f06a1f0f106b896b420956d52bca/Forge/build.gradle#L179
328+
pom.withXml {
329+
def node = asNode()
330+
if (node.dependencies.size() > 0) {
331+
node.remove(node.dependencies)
332+
}
333+
}
334+
}
335+
}
336+
}

0 commit comments

Comments
 (0)