- Update Paper API: 1.20.1 -> 1.21.4 - Update plugin version: 1.5.5-1.20.1 -> 1.5.5-1.21.8 - Add checkstyle plugin with reasonable rules - Fix Enchantment.LUCK -> Enchantment.UNBREAKING - Fix EntityType.FIREWORK -> EntityType.FIREWORK_ROCKET - Remove unused imports - Add temp_*/ to .gitignore - 118 files changed, 1633 insertions(+), 1301 deletions(-)
49 lines
1.4 KiB
Kotlin
49 lines
1.4 KiB
Kotlin
plugins {
|
|
java
|
|
checkstyle
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
|
|
maven("https://maven.enginehub.org/repo/")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
|
compileOnly("me.clip:placeholderapi:2.11.6")
|
|
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.9")
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
|
|
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.0")
|
|
testImplementation("org.mockito:mockito-core:5.11.0")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.10.0")
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
tasks.jar {
|
|
archiveFileName.set("LoHub-1.5.5-1.21.8.jar")
|
|
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion = "10.12.5"
|
|
configFile = file("${rootProject.rootDir}/config/checkstyle/checkstyle.xml")
|
|
isIgnoreFailures = false
|
|
maxWarnings = 0
|
|
}
|
|
|
|
tasks.withType<Checkstyle> {
|
|
reports {
|
|
xml.required.set(false)
|
|
html.required.set(true)
|
|
}
|
|
}
|