28 lines
1.1 KiB
Kotlin
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)
|
|
}
|

Staff