Refactor mod plugin structure.
This commit is contained in:
1 parent
32fab0c1d4
commit
9f5871905a
6 files changed
+56
-78
No files matched your search
@@ -1,7 +1,7 @@
|
||||
// Gradle plugins for mod authors (ids dev.overlord.zomboidforge for settings.gradle.kts and
|
||||
// dev.overlord.zomboidforge.mod): dependencies, mod.toml, build-time checks, packaging, and a
|
||||
// local test server. Runs inside the mod's Gradle JVM, so it targets Java 17; the checks run in
|
||||
// a separate Java 25 process (mod-tools).
|
||||
// Gradle plugin for mod authors (id dev.overlord.zomboidforge, for settings.gradle.kts):
|
||||
// dependencies, mod.toml, build-time checks, packaging, and a local test server. Runs inside the
|
||||
// mod's Gradle JVM, so it targets Java 17; the checks run in a separate Java 25 process
|
||||
// (mod-tools).
|
||||
|
||||
plugins {
|
||||
id("zomboidforge.java-conventions")
|
||||
@@ -16,17 +16,10 @@ tasks.withType<JavaCompile>().configureEach {
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
create("mod") {
|
||||
id = "dev.overlord.zomboidforge.mod"
|
||||
implementationClass = "dev.overlord.zomboidforge.gradle.ZomboidForgeModPlugin"
|
||||
displayName = "ZomboidForge mod"
|
||||
description = "Builds, checks, and packages server-side Java mods for ZomboidForge."
|
||||
}
|
||||
|
||||
create("settings") {
|
||||
id = "dev.overlord.zomboidforge"
|
||||
implementationClass = "dev.overlord.zomboidforge.gradle.ZomboidForgeSettingsPlugin"
|
||||
displayName = "ZomboidForge mod project"
|
||||
description = "Makes a ZomboidForge mod project a single settings.gradle.kts."
|
||||
displayName = "ZomboidForge mod"
|
||||
description = "Builds, checks, and packages server-side Java mods for ZomboidForge from a single settings.gradle.kts."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user