45 lines
884 B
Plaintext
45 lines
884 B
Plaintext
plugins {
|
|
id("java")
|
|
id("com.gradleup.shadow") version "9.0.0-beta4"
|
|
}
|
|
|
|
group = "com.alttd"
|
|
version = "1.0.0-SNAPSHOT"
|
|
description = "Altitude Plot Permissions 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.7-R0.1-SNAPSHOT") {
|
|
isChanging = true
|
|
}
|
|
compileOnly("net.luckperms:api:5.3") // Luckperms
|
|
}
|