3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-17 05:20:09 +01:00
ViaVersion/build-logic/src/main/kotlin/via.base-conventions.gradle.kts

29 Zeilen
757 B
Plaintext

2021-05-25 06:58:34 +02:00
plugins {
`java-library`
}
tasks {
// Variable replacements
processResources {
filesMatching(listOf("plugin.yml", "META-INF/sponge_plugins.json", "fabric.mod.json")) {
expand("version" to project.version, "description" to project.description, "url" to "https://viaversion.com")
2021-05-25 06:58:34 +02:00
}
}
javadoc {
options.encoding = Charsets.UTF_8.name()
2021-05-25 08:40:08 +02:00
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
2021-05-25 06:58:34 +02:00
}
compileJava {
options.encoding = Charsets.UTF_8.name()
options.compilerArgs.addAll(listOf("-nowarn", "-Xlint:-unchecked", "-Xlint:-deprecation"))
}
test {
useJUnitPlatform()
}
2021-05-25 06:58:34 +02:00
}
java {
javaTarget(17)
2021-05-25 06:58:34 +02:00
withSourcesJar()
}