2021-12-17 19:54:43 +00:00
|
|
|
plugins {
|
|
|
|
|
id("java")
|
2025-01-18 17:13:58 +00:00
|
|
|
id("com.gradleup.shadow") version "9.0.0-beta4"
|
2021-12-17 19:54:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "com.alttd"
|
|
|
|
|
version = "1.0.0-SNAPSHOT"
|
2022-01-03 21:25:23 +00:00
|
|
|
description = "Altitude Particles plugin."
|
2021-12-17 19:54:43 +00:00
|
|
|
|
|
|
|
|
apply<JavaLibraryPlugin>()
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
toolchain {
|
2025-01-18 17:13:58 +00:00
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
2021-12-17 19:54:43 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
|
withType<JavaCompile> {
|
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
withType<Javadoc> {
|
|
|
|
|
options.encoding = Charsets.UTF_8.name()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
|
archiveFileName.set("${project.name}-${project.version}.jar")
|
|
|
|
|
minimize()
|
|
|
|
|
configurations = listOf(project.configurations.shadow.get())
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
build {
|
|
|
|
|
dependsOn(shadowJar)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
2025-01-18 17:13:58 +00:00
|
|
|
compileOnly("com.alttd:Galaxy-API:1.21-R0.1-SNAPSHOT")
|
|
|
|
|
compileOnly("com.github.LeonMangler:PremiumVanishAPI:2.9.0-4")
|
2021-12-17 19:54:43 +00:00
|
|
|
}
|