Files
AnarchyMod/modern-build.gradle.kts
TS 3ae90416c8 feat: support any server, drop telemetry and server list injection
Unblock every server instead of only the domains on the built-in
allowlist, which also removes the startup download of the extra domain
list from 6b6t.org.

Remove the join packet that was sent to the server on every connect, and
stop inserting 6b6t into the multiplayer server list. The tracked
homepage link and the Discord entry are dropped from the mod metadata.
2026-07-16 11:12:23 +02:00

78 lines
1.9 KiB
Kotlin

plugins {
id("net.fabricmc.fabric-loom") version "1.17.14"
id("maven-publish")
}
val minecraftVersion = stonecutter.current.project
val loaderVersion = property("loader_version") as String
val fabricApiVersion = property("fabric_api_version") as String
val javaVersion = (property("java_version") as String).toInt()
version = property("mod_version")!!
group = property("maven_group")!!
base {
archivesName.set("anarchymod-mc-${minecraftVersion}")
}
dependencies {
minecraft("com.mojang:minecraft:$minecraftVersion")
implementation("net.fabricmc:fabric-loader:$loaderVersion")
implementation("net.fabricmc.fabric-api:fabric-api:$fabricApiVersion")
}
loom {
runConfigs.all {
ideConfigGenerated(true)
runDir = "../../run"
}
}
tasks.processResources {
inputs.property("version", project.version)
inputs.property("minecraft_version", minecraftVersion)
inputs.property("loader_version", loaderVersion)
inputs.property("java_version", javaVersion)
filteringCharset = "UTF-8"
filesMatching("fabric.mod.json") {
expand(
"version" to project.version,
"minecraft_version" to minecraftVersion,
"loader_version" to loaderVersion,
"java_version" to javaVersion
)
}
filesMatching("anarchymod.mixins.json") {
expand(
"java_version" to javaVersion
)
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
options.release.set(javaVersion)
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(javaVersion))
withSourcesJar()
}
tasks.jar {
from("LICENSE") {
rename { "${it}_${base.archivesName.get()}" }
}
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
artifactId = base.archivesName.get()
from(components["java"])
}
}
}