43 lines
964 B
Kotlin
43 lines
964 B
Kotlin
plugins {
|
|
id("java-library")
|
|
id("xyz.jpenilla.run-paper") version "3.0.2"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://repo.plasmoverse.com/releases")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT")
|
|
// MongoDB driver (will be loaded at runtime via PluginLoader)
|
|
compileOnly("org.mongodb:mongodb-driver-sync:5.0.1")
|
|
|
|
// PlasmoVoice API (optional)
|
|
compileOnly("su.plo.voice.api:server:2.1.8")
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.release.set(21)
|
|
}
|
|
|
|
tasks {
|
|
runServer {
|
|
minecraftVersion("1.21.11")
|
|
jvmArgs("-Xms2G", "-Xmx2G")
|
|
}
|
|
|
|
processResources {
|
|
val props = mapOf("version" to version)
|
|
filesMatching("paper-plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
}
|