plugins/DuneChest/build.gradle.kts
unimatrixgit d7bcd912ac
All checks were successful
Planet DuneChest Build / dunechest (push) Successful in 53s
DuneRealms Plugin CI / plugins (push) Successful in 2m46s
Grade DuneChest outputs through JARVIS at creation
2026-12-02 13:58:44 +01:00

28 lines
1.1 KiB
Kotlin

plugins { java }
group = "com.example"
version = "1.0.9"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.opencollab.dev/main/")
}
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
compileOnly("org.geysermc.floodgate:api:2.2.5-SNAPSHOT")
testImplementation("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
sourceSets.main { java.srcDir("../gui-common/src/main/java") }
tasks.jar { archiveFileName.set("DuneChest.jar") }
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
tasks.withType<JavaCompile> { options.encoding = "UTF-8" }
tasks.test { useJUnitPlatform() }
val paperValidation by sourceSets.creating {
compileClasspath += sourceSets.main.get().output + configurations.compileClasspath.get()
}
tasks.register<Jar>("paperValidationJar") {
archiveFileName.set("DuneChestPaperValidation.jar")
from(paperValidation.output)
}