Skip to content

Instantly share code, notes, and snippets.

@SizableShrimp
Last active August 3, 2022 20:29
Show Gist options
  • Save SizableShrimp/7c54857a77274a98a599caa6b9bbbc28 to your computer and use it in GitHub Desktop.
Save SizableShrimp/7c54857a77274a98a599caa6b9bbbc28 to your computer and use it in GitHub Desktop.
Using shadowJar with FG's jarJar
afterEvaluate {
tasks.named('jarJar') {
enabled = false
}
tasks.named('reobfJarJar') {
enabled = false
}
}
tasks.register('fullJar', net.minecraftforge.gradle.userdev.tasks.JarJar) {
group = 'build'
archiveClassifier = ''
from tasks.named('shadowJar').map { zipTree(it.archiveFile) }
configuration project.configurations.jarJar
doFirst {
manifest.inheritFrom tasks.shadowJar.manifest.effectiveManifest
}
}
reobf {
shadowJar {}
fullJar {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment