forked from unimatrix/web
29 lines
1.3 KiB
Kotlin
29 lines
1.3 KiB
Kotlin
plugins { java }
|
|
group = "com.example"
|
|
version = "1.0.0"
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://jitpack.io")
|
|
}
|
|
dependencies {
|
|
compileOnly(project(":DuneCore"))
|
|
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
|
|
compileOnly("com.github.MilkBowl:VaultAPI:1.7") { exclude(group = "org.bukkit", module = "bukkit") }
|
|
testImplementation(project(":DuneCore"))
|
|
testImplementation("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
|
testImplementation("org.mockito:mockito-core:5.15.2")
|
|
testRuntimeOnly("com.github.MilkBowl:VaultAPI:1.7") { exclude(group = "org.bukkit", module = "bukkit") }
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
|
|
tasks.withType<JavaCompile> { options.encoding = "UTF-8" }
|
|
tasks.test { useJUnitPlatform() }
|
|
|
|
tasks.jar { archiveFileName.set("DuneRealms-NPC.jar") }
|
|
|
|
// Explicit test instrumentation works on Java 21 without dynamic self-attachment.
|
|
val mockitoAgent by configurations.creating
|
|
dependencies { mockitoAgent("org.mockito:mockito-core:5.15.2") { isTransitive = false } }
|
|
tasks.test { jvmArgs("-javaagent:${mockitoAgent.singleFile.absolutePath}") }
|

Staff