Add Docker build system for ZomboidForge with containerized server setup, Gradle build logic, and project configuration.

This commit is contained in:
Overlord committed 2026-09-28 23:12:57 +02:00
1 parent d4c5a9d45f
commit bf9228d2be
18 files changed
+747 -55

No files matched your search

@@ -0,0 +1,32 @@
plugins {
java
}
val projectZomboid = extensions.create<ProjectZomboidExtension>("projectZomboid")
projectZomboid.serverJar.convention(
layout.settingsDirectory.file(
providers.gradleProperty("pz.jar").orElse("lib/server/java/projectzomboid.jar")
)
)
java {
// Project Zomboid ships and runs on Java 25 (bundled Zulu jre64; class version 69).
toolchain.languageVersion = JavaLanguageVersion.of(25)
}
tasks.withType<JavaCompile>().configureEach {
options.release = 25
options.encoding = "UTF-8"
options.compilerArgs.addAll(listOf("-Xlint:all", "-Xlint:-options", "-Xlint:-path"))
}
tasks.withType<Jar>().configureEach {
manifest.attributes(
"Implementation-Title" to "ZomboidForge",
"Implementation-Version" to project.version,
)
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}