Posted October 8, 201411 yr Can I compile my mod without obfuscating the resulting code? I want to use the compiled jar as a dependency in one of my other mods which I launch from the eclipse workspace so I need an unobfuscated result. I don't want to link to the source directly because I don't want to provide that source on the github if possible, just the final (unobfuscated) jar.
October 8, 201411 yr Author I just want to add a note for all of you that read this: Things that you have to copy to your build.gradle: task deobfJar(type: Jar) { // Generate deobfuscated from sourceSets.main.output classifier = 'deobf' } task sourceJar(type: Jar) { // Generate sources from sourceSets.main.allSource classifier = 'sources' } tasks.build.dependsOn('sourceJar', 'deobfJar') artifacts { archives deobfJar archives sourceJar archives jar } Make sure to include this after the minecraft {...} tab.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.