plugins/DuneStaff/build.gradle.kts
unimatrixgit 0330ec9653
All checks were successful
DuneStaff Build / dune-staff (push) Successful in 1m42s
DuneRealms Plugin CI / plugins (push) Successful in 10m43s
Pin and build the Tweaks & Ladders staff consolidation candidate
2026-12-04 22:44:58 +01:00

33 lines
1.3 KiB
Kotlin

plugins { java }
group = "com.dunerealms"
version = "1.1.0"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
val mockitoAgent by configurations.creating
dependencies {
implementation("com.mysql:mysql-connector-j:26.10.0")
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
compileOnly("net.luckperms:api:5.5")
compileOnly("com.google.code.gson:gson:2.11.0")
testImplementation("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
testImplementation("net.luckperms:api:5.5")
testImplementation("com.google.code.gson:gson:2.11.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testImplementation("org.mockito:mockito-core:5.15.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
mockitoAgent("org.mockito:mockito-core:5.15.2") { isTransitive = false }
}
tasks.test {
useJUnitPlatform()
jvmArgs("-javaagent:${mockitoAgent.singleFile.absolutePath}")
}
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
tasks.jar {
archiveFileName.set("DuneStaff.jar")
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
exclude("META-INF/*.SF", "META-INF/*.RSA", "META-INF/*.DSA")
}
tasks.withType<JavaCompile> { options.encoding = "UTF-8" }