31 lines
1.3 KiB
Kotlin
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)) })
|
|
}
|

Staff