Files
NotJustNameplates/build.gradle.kts
T
YouHaveTrouble 9ff6223829 Implement display offset, refactor scaling and upgrade version
The main change introduced is the implementation of display offset within nameplates. Previously applied scaling calculations have been refactored and simplified by using the Vector3f class. The software version has also been upgraded from 1.5.0 to 1.6.0 in preparation for release. Other minor adjustments include changing the default 'billboard' setting from 'vertical' to 'center'.
2024-02-28 22:41:57 +01: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.6.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.4-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)
}
}
}