Introduce gradle-plugin and mod-tools modules. Add ZomboidForge Gradle plugin for building, checking, and packaging mods. Include support for local test servers, automated game jar downloads, and mod descriptor generation. Add mod-tools for runtime mod checks and validations.

This commit is contained in:
Overlord committed 2026-10-02 15:36:10 +02:00
1 parent 68cd9fc4f9
commit 063ad8a3e1
27 files changed
+1976 -30

No files matched your search

+27
View File
@@ -1,7 +1,34 @@
// API for custom Java mods. Version-independent: no references to game classes.
// Published as dev.overlord.zomboidforge:api; mods compile against it.
plugins {
id("zomboidforge.java-conventions")
id("zomboidforge.publishing")
`java-library`
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.javadoc {
// api.internal connects the API to the runtime and is not part of the documented API.
exclude("dev/overlord/zomboidforge/api/internal/**")
(options as StandardJavadocDocletOptions).apply {
// IntelliJ's @noinspection in package-info.java is not a Javadoc tag.
tags("noinspection:X")
addStringOption("Xdoclint:all,-missing", "-quiet")
}
}
publishing {
publications {
create<MavenPublication>("api") {
from(components["java"])
}
}
}
dependencies {