Skip to content

Commit

Permalink
Release v1.2.1 for MC 1.20.6 Forge
Browse files Browse the repository at this point in the history
  • Loading branch information
cpburnz committed Aug 19, 2024
1 parent 6be196b commit 52e0299
Show file tree
Hide file tree
Showing 5 changed files with 176 additions and 188 deletions.
21 changes: 5 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ minecraft {
// Simply re-run your setup task after changing the mappings to update your workspace.
mappings channel: mapping_channel, version: mapping_version

// Tell FG to not automtically create the reobf tasks, as we now use Official mappings at runtime, If you don't use them at dev time then you'll have to fix your reobf yourself.
// Tell FG to not automatically create the reobf tasks, as we now use Official mappings at runtime, If you don't use them at dev time then you'll have to fix your reobf yourself.
reobf = false

// When true, this property will have all Eclipse/IntelliJ IDEA run configurations run the "prepareX" task for the given run configuration before launching the game.
Expand Down Expand Up @@ -215,8 +215,8 @@ tasks.named('jar', Jar).configure {
])
}

// This is the preferred method to reobfuscate your jar file
finalizedBy 'reobfShadowJar'
// This is the preferred method to reobfuscate/finalize your jar file.
finalizedBy 'shadowJar'
}

// Configure Shadow Jar.
Expand All @@ -236,19 +236,8 @@ tasks.named('shadowJar').configure {
minimize()
}

// Reobfuscate the Shadow Jar because the Minecraft classes must be obfuscated.
reobf {
jar {
// Disable generation of unshadowed obfuscated JAR.
enabled = false
}
shadowJar {
enabled = true
}
}

tasks.reobfShadowJar.dependsOn tasks.jar
tasks.assemble.dependsOn tasks.reobfShadowJar
tasks.shadowJar.dependsOn tasks.jar
tasks.assemble.dependsOn tasks.shadowJar

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
Expand Down
Loading

0 comments on commit 52e0299

Please sign in to comment.