48 lines
1.3 KiB
Kotlin
48 lines
1.3 KiB
Kotlin
plugins {
|
|
id("java-library")
|
|
id("xyz.jpenilla.run-paper") version "3.0.2"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:26.1.2.build.+")
|
|
compileOnly("net.flectone.pulse:core:1.12.0")
|
|
compileOnly("net.luckperms:api:5.5")
|
|
|
|
testImplementation("io.papermc.paper:paper-api:26.1.2.build.+")
|
|
testImplementation("net.flectone.pulse:core:1.12.0")
|
|
testImplementation("net.luckperms:api:5.5")
|
|
testImplementation(platform("org.junit:junit-bom:6.0.0"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion = JavaLanguageVersion.of(25)
|
|
}
|
|
|
|
tasks {
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
runServer {
|
|
// Configure the Minecraft version for our task.
|
|
// This is the only required configuration besides applying the plugin.
|
|
// Your plugin's jar (or shadowJar if present) will be used automatically.
|
|
minecraftVersion("26.1.2")
|
|
jvmArgs("-Xms2G", "-Xmx2G")
|
|
}
|
|
|
|
processResources {
|
|
val props = mapOf("version" to version, "description" to project.description)
|
|
filesMatching("plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
}
|