chore: cleanup configs, docs, checkstyle, remove dead deps

This commit is contained in:
loki5512344 2026-07-05 11:38:04 +02:00
parent 984b364295
commit d3d87c34e0
23 changed files with 1703 additions and 2231 deletions

View file

@ -2,10 +2,11 @@ plugins {
java
id("xyz.jpenilla.run-paper") version "2.3.1"
jacoco
checkstyle
}
group = "com.loki"
version = "1.5.5-1.21.8"
version = "1.5.5-1.21.x"
repositories {
mavenCentral()
@ -30,6 +31,14 @@ dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.10.0")
}
checkstyle {
toolVersion = "10.21.4"
configFile = file("config/checkstyle/checkstyle.xml")
isIgnoreFailures = false
maxErrors = 0
maxWarnings = 100
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
@ -63,13 +72,12 @@ jacoco {
}
tasks.jar {
archiveFileName.set("LoChat-1.5.5-1.21.8.jar")
archiveFileName.set("LoChat-${project.version}.jar")
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
// Локальный Paper для тестов: .\gradlew.bat runServer
tasks.runServer {
minecraftVersion("1.21.4")
// Совпадает с compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
minecraftVersion("1.21.4") // lowest supported; runs on any 1.21.x Paper server
}