37 lines
694 B
Kotlin
37 lines
694 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.jar {
|
|
archiveFileName.set("prometheus-spigot-${project.version}.jar")
|
|
}
|
|
|
|
tasks.processResources {
|
|
filteringCharset = "UTF-8"
|
|
filesMatching("plugin.yml") {
|
|
expand("version" to version)
|
|
}
|
|
}
|