mirror of
https://github.com/YouHaveTrouble/NotJustNameplates.git
synced 2026-05-11 22:16:57 +00:00
51 lines
1.4 KiB
Kotlin
51 lines
1.4 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 = "1.0.1"
|
|
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))
|
|
}
|
|
|
|
repositories {
|
|
maven("https://repo.purpurmc.org/snapshots/")
|
|
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
|
|
}
|
|
|
|
dependencies {
|
|
paperweight.paperDevBundle("1.20.1-R0.1-SNAPSHOT", "org.purpurmc.purpur")
|
|
compileOnly("me.clip:placeholderapi:2.11.3")
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
} |