Wire DataPackManager, add uninstall, update build
Swap Shadow plugin to com.gradleup.shadow v8.3.5 and add kotlin serialization plugin. Add relocations for bundled libraries (fastboard, Hikari) in the shadowJar. Make DataPackManager a plugin-scoped property: initialize and install it during onLoad and call uninstall during onDisable. Add a convenience uninstall() that reads the target world from config and removes the datapack there. Also comment out writeNoiseSettingOverride with a warning that the simplified file crashes Minecraft 1.21.
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
plugins {
|
||||
id("java")
|
||||
id("maven-publish")
|
||||
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||
id("com.gradleup.shadow") version "8.3.5"
|
||||
kotlin("jvm") version "2.2.0"
|
||||
kotlin("kapt") version "2.2.0"
|
||||
kotlin("plugin.serialization") version "2.2.0"
|
||||
}
|
||||
|
||||
group = "club.mcscrims"
|
||||
@@ -47,6 +48,9 @@ tasks {
|
||||
archiveBaseName.set("GameModes-SpeedHG")
|
||||
archiveClassifier.set("")
|
||||
archiveVersion.set(project.version.toString())
|
||||
|
||||
relocate("fr.mrmicky.fastboard", "club.mcscrims.speedhg.libs.fastboard")
|
||||
relocate("com.zaxxer.hikari", "club.mcscrims.speedhg.libs.hikari")
|
||||
}
|
||||
|
||||
build {
|
||||
|
||||
Reference in New Issue
Block a user