Skip to content

Commit

Permalink
Fix main jar not being obfuscated
Browse files Browse the repository at this point in the history
  • Loading branch information
Minecraftschurli committed Aug 1, 2023
1 parent b95b209 commit 6229b2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ sourcesJar {
tasks.jarJar.configure {
archiveClassifier.set('')
from sourceSets.api.output
finalizedBy('reobfJarJar')
}

tasks.register('apiJar', Jar) {
Expand Down Expand Up @@ -395,11 +396,13 @@ artifacts {
reobf {
apiJar { classpath.from(sourceSets.api.compileClasspath) }
jar { classpath.from(sourceSets.main.compileClasspath) }
jarJar { classpath.from(sourceSets.main.compileClasspath) }
}

tasks.register('reobf') {
dependsOn reobfJar
dependsOn reobfApiJar
dependsOn reobfJarJar
}

tasks.register('setupGithubActions') {
Expand Down

0 comments on commit 6229b2a

Please sign in to comment.