Files
prometheus-spigot/build.gradle.kts
T
2026-01-22 22:31:29 -05:00

33 lines
611 B
Kotlin

plugins {
java
}
group = "com.prometheus"
version = project.findProperty("version")?.toString() ?: "0.1.0"
repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.21.1-R0.1-SNAPSHOT")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.withType<JavaCompile>().configureEach {
options.encoding = "UTF-8"
}
tasks.processResources {
filteringCharset = "UTF-8"
filesMatching("plugin.yml") {
expand("version" to version)
}
}