Files
NotJustNameplates/build.gradle.kts
T
2023-09-30 19:14:46 +02:00

54 lines
1.5 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.4.0"
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/")
maven("https://jitpack.io")
}
dependencies {
paperweight.paperDevBundle("1.20.2-R0.1-SNAPSHOT", "org.purpurmc.purpur")
compileOnly("me.clip:placeholderapi:2.11.3")
compileOnly("com.github.LeonMangler:SuperVanish:6.2.17")
compileOnly("com.github.mbax:VanishNoPacket:3.22")
}
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)
}
}
}