47 lines
748 B
Kotlin
47 lines
748 B
Kotlin
plugins {
|
|
java
|
|
|
|
id("io.papermc.paperweight.userdev") version "2.0.0-beta.21"
|
|
}
|
|
|
|
group = "com.rsscripting"
|
|
version = "1.1.0"
|
|
val pluginVersion = version.toString()
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
|
|
// Paper API + NMS
|
|
paperweight.paperDevBundle("1.21.11-R0.1-SNAPSHOT")
|
|
}
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
|
|
tasks {
|
|
compileJava {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
processResources {
|
|
filteringCharset = "UTF-8"
|
|
|
|
val props = mapOf(
|
|
"version" to pluginVersion
|
|
)
|
|
|
|
inputs.properties(props)
|
|
|
|
filesMatching("plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
|
|
assemble {
|
|
dependsOn(reobfJar)
|
|
}
|
|
} |