Large refactor removing many legacy subsystems (abilities, kit system, database repos, recraft, world manager, extensive config classes, lunar/luckperms integrations and various listeners/commands). Introduces a lightweight LanguageManager, AntiRunningManager, ScoreboardManager, ConnectListener and a SoupListener; simplifies the main SpeedHG plugin to initialize these components and register the connection listener. Build changes: update Gradle wrapper to 8.10, remove paperweight and several external dependencies, add fr.mrmicky:fastboard and simplify shadowJar/build task configuration. Adds default language resource (languages/en_US.yml) and updates plugin/config resources. Purpose: simplify and decouple the plugin, reduce dependency surface and prepare for a leaner, modular rewrite.
50 lines
1.1 KiB
Kotlin
50 lines
1.1 KiB
Kotlin
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
|
kotlin("jvm") version libs.versions.kotlin
|
|
kotlin("kapt") version libs.versions.kotlin
|
|
}
|
|
|
|
group = "club.mcscrims"
|
|
version = "1.0.0"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
|
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
|
maven("https://libraries.minecraft.net/")
|
|
maven("https://repo.codemc.io/repository/maven-public/")
|
|
maven("https://repo.lunarclient.dev")
|
|
}
|
|
|
|
dependencies {
|
|
implementation("fr.mrmicky:fastboard:2.1.3")
|
|
compileOnly("io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT")
|
|
}
|
|
|
|
tasks {
|
|
compileKotlin {
|
|
compilerOptions.freeCompilerArgs.set(listOf( "-Xjsr305=strict" ))
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
shadowJar {
|
|
archiveBaseName.set("GameModes-SpeedHG")
|
|
archiveClassifier.set("")
|
|
archiveVersion.set(project.version.toString())
|
|
}
|
|
|
|
build {
|
|
dependsOn( shadowJar )
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of( 21 ))
|
|
}
|