2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2026-04-02 21:20:47 +00:00
RedisBungee/build.gradle.kts
Mohammed Alteneiji e4fe6014ac
make RedisBungee projects compilable
still same 0.13.0 core nothing changed yet but with formatting appiled
2026-04-01 16:10:18 +04:00

47 lines
1.4 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> {
var redisBungeeProjects = sequenceOf("RedisBungee-API", "RedisBungee-Lang", "RedisBungee-Commands", "RedisBungee-Bungee", "RedisBungee-Proxy-Bungee", "RedisBungee-Velocity", "RedisBungee-Proxy-Velocity")
java {
removeUnusedImports()
googleJavaFormat()
if (project.name == "valiobungee-api") {
licenseHeaderFile(file("copyright_header.txt"))
} else if (redisBungeeProjects.contains(project.name)) {
licenseHeaderFile(rootProject.file("redisbungee/copyright_header.txt"))
} else {
licenseHeaderFile(rootProject.file("copyright_header.txt"))
}
if (project.name == "valiobungee-core") {
targetExclude("**/net/limework/valiobungee/core/proto/**")
}
}
}
}