Add Fabric/Forge version builds and Paper integration, preserve permanent player identities across renames, harden session authorization, and surface privacy-conscious launcher/server activity in the panel.
23 lines
1.1 KiB
Groovy
23 lines
1.1 KiB
Groovy
plugins { id 'net.fabricmc.fabric-loom' version '1.17.17' }
|
|
def mc = providers.gradleProperty('mcVersion').get()
|
|
if (providers.gradleProperty('verifyMixins').isPresent()) {
|
|
loom { runs { server { vmArg '-Dscopenet.verifyMixins=true' } } }
|
|
}
|
|
java.sourceCompatibility = JavaVersion.VERSION_25
|
|
java.targetCompatibility = JavaVersion.VERSION_25
|
|
dependencies {
|
|
minecraft "com.mojang:minecraft:${mc}"
|
|
implementation 'net.fabricmc:fabric-loader:0.19.5'
|
|
implementation project(':common')
|
|
}
|
|
sourceSets.main.java.srcDirs += ['../minecraft/src/main/java', '../minecraft/src/26/java']
|
|
sourceSets.main.resources.srcDirs += ['../minecraft/src/main/resources']
|
|
apply from: '../minecraft/build-info.gradle'
|
|
processResources {
|
|
inputs.properties(version: project.version, mc: mc)
|
|
filesMatching('fabric.mod.json') { expand(version: project.version, mc: mc, java: 25) }
|
|
filesMatching('scopenet.mixins.json') { filter { line -> line.contains('"refmap"') ? null : line } }
|
|
}
|
|
base.archivesName = "scopenet-fabric-${mc}"
|
|
jar { from project(':common').sourceSets.main.output }
|