// Build settings for a RustexRemake mod. // // A mod is compiled ONCE against the stable API and never rebuilt: the bridge // resolves every logical name against whatever build is installed, so a vendor // re-obfuscation does not invalidate anything that was already built. plugins { id 'java' } group = 'com.example' version = '1.0.0' java { sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 } dependencies { // the only thing a mod ever compiles against compileOnly files('libs/rsx-api.jar') } tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' options.release = 8 } jar { archiveFileName = "${project.name}.jar" manifest { // the bridge reads this to find the class to instantiate attributes('Rsx-Mod-Entrypoint': 'com.example.ExampleMod') } } // convenience: drop the built mod straight into the client's mods folder tasks.register('installMod', Copy) { dependsOn 'jar' from jar into "${projectDir}/../../rsx-mod/mods" }