mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-03-25 01:10:46 +00:00
41 lines
928 B
Plaintext
41 lines
928 B
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"))
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|