mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-15 23:20:44 +00:00
37 lines
780 B
Kotlin
37 lines
780 B
Kotlin
|
|
subprojects {
|
|
apply(plugin = "java-library")
|
|
|
|
var javaVersion = 21
|
|
configure<JavaPluginExtension> {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
|
}
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
options.release = javaVersion
|
|
}
|
|
|
|
tasks.withType<Javadoc> {
|
|
options {
|
|
(this as CoreJavadocOptions).addBooleanOption("Xdoclint:none", true)
|
|
}
|
|
}
|
|
|
|
tasks.withType<ProcessResources> {
|
|
filteringCharset = "UTF-8"
|
|
}
|
|
|
|
pluginManager.withPlugin("com.gradleup.shadow") {
|
|
tasks {
|
|
named("build") {
|
|
dependsOn("shadowJar")
|
|
}
|
|
}
|
|
}
|
|
}
|