mirror of
https://github.com/YouHaveTrouble/NotJustNameplates.git
synced 2026-05-11 22:16:57 +00:00
45 lines
1.2 KiB
Kotlin
45 lines
1.2 KiB
Kotlin
plugins {
|
|
`java-library`
|
|
id("io.papermc.paperweight.userdev") version "1.5.5"
|
|
id("xyz.jpenilla.run-paper") version "2.1.0" // Adds runServer and runMojangMappedServer tasks for testing
|
|
}
|
|
|
|
group = "me.youhavetrouble"
|
|
version = "pre1.0.0-SNAPSHOT"
|
|
description = "Nameplates using display entities"
|
|
|
|
java {
|
|
// Configure the java toolchain. This allows gradle to auto-provision JDK 17 on systems that only have JDK 8 installed for example.
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
|
|
dependencies {
|
|
paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT")
|
|
}
|
|
|
|
tasks {
|
|
assemble {
|
|
dependsOn(reobfJar)
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
options.release.set(17)
|
|
}
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name()
|
|
}
|
|
processResources {
|
|
filteringCharset = Charsets.UTF_8.name()
|
|
val props = mapOf(
|
|
"name" to project.name,
|
|
"version" to project.version,
|
|
"description" to project.description,
|
|
"apiVersion" to "1.20"
|
|
)
|
|
inputs.properties(props)
|
|
filesMatching("paper-plugin.yml") {
|
|
expand(props)
|
|
}
|
|
}
|
|
} |