2021-05-25 06:58:34 +02:00
|
|
|
plugins {
|
|
|
|
`java-library`
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
// Variable replacements
|
|
|
|
processResources {
|
2024-05-30 21:55:10 +02:00
|
|
|
filesMatching(listOf("plugin.yml", "fabric.mod.json")) {
|
2024-05-31 09:40:12 +02:00
|
|
|
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"))
|
|
|
|
}
|
2023-11-06 04:11:35 +01:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2021-05-25 06:58:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
2021-08-28 16:50:52 +02:00
|
|
|
javaTarget(17)
|
2021-05-25 06:58:34 +02:00
|
|
|
withSourcesJar()
|
|
|
|
}
|