mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-04-08 16:10:26 +00:00
rewrite init
This commit is contained in:
40
build.gradle.kts
Normal file
40
build.gradle.kts
Normal file
@@ -0,0 +1,40 @@
|
||||
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"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user