plugins/JarvisConnector/build.gradle.kts
unimatrixgit 944fa69b69
Some checks failed
DuneGroups Replacement Build / dunegroups (push) Successful in 55s
DuneRealms Resourcepack CI / resourcepack (push) Failing after 9s
DuneRealms Plugin CI / plugins (push) Has been cancelled
Preserve retained planet and Lobby JARVIS variants in DuneGroups rollout
2026-12-02 13:41:05 +01:00

31 lines
1.3 KiB
Kotlin

plugins { java }
group = "com.dunerealms"
version = "0.5.39-rawspice1"
repositories { mavenCentral(); maven("https://repo.papermc.io/repository/maven-public/") }
dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
testImplementation("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.test { useJUnitPlatform() }
java { toolchain.languageVersion.set(JavaLanguageVersion.of(21)) }
tasks.withType<JavaCompile> { options.encoding = "UTF-8" }
tasks.jar { archiveFileName.set("jarvistranslator.jar") }
tasks.processResources {
from(rootProject.file("../network/content-assets/planet-artwork/profiles.json")) {
rename { "planet-item-profiles.json" }
}
}
sourceSets.main { java.srcDir("../citizens-common/src/main/java") }
tasks.register<JavaCompile>("compileLobbyDuneGroupsBridge") {
dependsOn(tasks.classes)
source("src/lobbyDuneGroups/java/com/dunerealms/jarvis/NativeKeyWorker.java")
classpath = sourceSets.main.get().output + configurations.compileClasspath.get()
destinationDirectory.set(layout.buildDirectory.dir("classes/lobby-dunegroups"))
javaCompiler.set(javaToolchains.compilerFor { languageVersion.set(JavaLanguageVersion.of(21)) })
}