23 lines
1.1 KiB
Kotlin
23 lines
1.1 KiB
Kotlin
plugins { java }
|
|
group = "com.example"
|
|
version = "3.0.0"
|
|
repositories { mavenCentral(); maven("https://repo.papermc.io/repository/maven-public/") }
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
|
testImplementation("io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT")
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
tasks.withType<JavaCompile> { options.encoding = "UTF-8"; options.release.set(21) }
|
|
tasks.processResources { from("../network/server-control/kit-equipment-contract.json") }
|
|
tasks.test { useJUnitPlatform() }
|
|
tasks.jar { archiveFileName.set("DuneKits-3.0.0.jar") }
|
|
|
|
val compat by sourceSets.creating
|
|
configurations[compat.compileOnlyConfigurationName].extendsFrom(configurations.compileOnly.get())
|
|
val compatJar by tasks.registering(Jar::class) {
|
|
archiveFileName.set("DuneAtelierCompat-3.0.0.jar")
|
|
from(compat.output)
|
|
}
|
|
tasks.jar { dependsOn(compatJar) }
|
|
sourceSets.test { compileClasspath += compat.output; runtimeClasspath += compat.output }
|

Staff