Skip to content

Commit

Permalink
Remove mixinssquared group workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
1foxy2 committed Sep 30, 2024
1 parent bccf1ca commit 283f636
Showing 1 changed file with 1 addition and 33 deletions.
34 changes: 1 addition & 33 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,4 @@ dependencies {
implementation(jarJar("com.github.bawnorton.mixinsquared:mixinsquared-neoforge:${project.mixinsquared_version}"))
}

sourceSets.main.resources { srcDir 'src/generated/resources' }

tasks.register("modifyMetaData") {
def jsonFile = file('./build/generated/jarJar/META-INF/jarjar/metadata.json')

doLast {
def jsonContent = new JsonSlurper().parseText(jsonFile.text)

def newEntry = [
identifier: [
group: "com.github.bawnorton.mixinsquared",
artifact: "mixinsquared-neoforge"
],
version: [
range: "[0.2.0,)",
artifactVersion: "0.2.0"
],
path: "META-INF/jarjar/mixinsquared-neoforge-0.2.0.jar",
isObfuscated: false
]

jsonContent.jars << newEntry
jsonFile.text = JsonOutput.prettyPrint(JsonOutput.toJson(jsonContent))
}
}

tasks.named("jar") {
dependsOn modifyMetaData
}

tasks.named("modifyMetaData") {
dependsOn jarJar
}
sourceSets.main.resources { srcDir 'src/generated/resources' }

0 comments on commit 283f636

Please sign in to comment.