• Forums

Navigation

  • Home
  • Contributing to the Docs
  • Getting Started
    • Introduction
  • Configurations
    • Introduction
    • Run Configs
    • Advanced Topics
      • Reobfuscating Source Sets
  • Dependencies
    • Introduction
    • Jar-in-Jar
  • Porting to this Version

Advanced Configurations

ForgeGradle contains a few specific or nuanced configuration techniques depending on the complexity of your build project.

Reobfuscating Source Sets

By default, the reobf* abd rename* tasks only contain files on the main source set’s classpath. To reobfuscate files on a different classpath, they need to be added to the libraries property within the task.

// Adds another source set's classpath to 'reobf' task.
tasks.withType('reobfJar') {
    libraries.from sourceSets.api.classpath
}
Built with MkDocs using a custom theme. Hosted by Read the Docs.
Enable Dark Theme