2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-03-29 03:10:47 +00:00
RedisBungee/build.gradle.kts
2026-03-28 19:31:31 +04:00

44 lines
1.0 KiB
Plaintext

plugins {
`java-library`
alias { libs.plugins.spotless } apply false
}
subprojects {
apply { plugin("com.diffplug.spotless") }
apply { plugin("java-library") }
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
withJavadocJar()
withSourcesJar()
}
tasks {
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
}
extensions.configure<com.diffplug.gradle.spotless.SpotlessExtension> {
java {
removeUnusedImports()
googleJavaFormat()
if (project.name == "valiobungee-api") {
licenseHeaderFile(file("copyright_header.txt"))
} else {
licenseHeaderFile(rootProject.file("copyright_header.txt"))
}
if (project.name == "valiobungee-core") {
targetExclude("**/net/limework/valiobungee/core/proto/**")
}
}
}
}