54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
plugins {
|
|
id("java")
|
|
id("com.gradleup.shadow") version "9.0.0-beta4"
|
|
}
|
|
|
|
group = "com.alttd"
|
|
version = "1.0.0-SNAPSHOT"
|
|
description = "Altitude Particles plugin."
|
|
|
|
apply<JavaLibraryPlugin>()
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
}
|
|
|
|
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 {
|
|
// Cosmos
|
|
compileOnly("com.alttd.cosmos:cosmos-api:1.21.6-R0.1-SNAPSHOT") {
|
|
isChanging = true
|
|
}
|
|
// Lombok
|
|
compileOnly("org.projectlombok:lombok:1.18.32")
|
|
annotationProcessor("org.projectlombok:lombok:1.18.32")
|
|
// Premium vanish
|
|
compileOnly("com.github.LeonMangler:PremiumVanishAPI:2.9.0-4")
|
|
// Jackson/Dynamic Beans Integration
|
|
implementation("com.fasterxml.jackson.module:jackson-module-parameter-names:2.15.2")
|
|
// Jackson for JSON Parsing
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
|
|
implementation("com.fasterxml.jackson.core:jackson-annotations:2.15.2")
|
|
}
|