20 lines
737 B
Kotlin
20 lines
737 B
Kotlin
plugins { java }
|
|||
|
|
group = "online.astradev"
|
||
|
|
version = "0.1.0"
|
||
|
|
repositories {
|
||
|
|
mavenCentral()
|
||
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||
|
|
}
|
||
|
|
dependencies {
|
||
|
|
compileOnly("io.papermc.paper:paper-api:26.2.build.121-stable")
|
||
|
|
testImplementation("org.junit.jupiter:junit-jupiter:5.11.4")
|
||
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
|
||
|
|
}
|
||
|
|
java { toolchain.languageVersion.set(JavaLanguageVersion.of(25)) }
|
||
|
|
tasks.withType<JavaCompile>().configureEach { options.encoding = "UTF-8"; options.release.set(25) }
|
||
|
|
tasks.processResources {
|
||
|
|
inputs.property("pluginVersion", project.version)
|
||
|
|
filesMatching("plugin.yml") { expand("version" to project.version) }
|
||
|
|
}
|
||
|
|
tasks.test { useJUnitPlatform() }
|