We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fba8274 commit e45263aCopy full SHA for e45263a
worldedit-fabric/build.gradle.kts
@@ -99,6 +99,13 @@ tasks.named<ShadowJar>("shadowJar") {
99
archiveClassifier.set("dist")
100
// Use the JAR output, not classes, as we need jar-in-jar from loom to work properly.
101
dependsOn(tasks.jar)
102
+ val processedFabricModJson = layout.buildDirectory.file("resources/main/fabric.mod.json").get().asFile.absoluteFile
103
+ eachFile {
104
+ // Exclude the fabric.mod.json in the resources folder to allow the one from Fabric's jar task to be added
105
+ if (path == "fabric.mod.json" && file.absoluteFile == processedFabricModJson) {
106
+ exclude()
107
+ }
108
109
from(zipTree(tasks.jar.flatMap { it.archiveFile }))
110
dependencies {
111
relocate("org.antlr.v4", "com.sk89q.worldedit.antlr4")
0 commit comments