Minestom/build-logic/src/main/kotlin/minestom.common-conventions.gradle.kts

28 lines
827 B
Plaintext
Raw Normal View History

2022-01-01 18:27:52 +01:00
plugins {
java
}
// Always exclude checker-qual. This is the single most annoying thing that always reappears.
configurations.all {
// We only use Jetbrains Annotations
exclude("org.checkerframework", "checker-qual")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}
tasks {
withType<JavaCompile> {
// We are fully aware, that we should be suppressing these instead of ignoring them here, but man keep my terminal clean.
options.compilerArgs.addAll(listOf("-Xlint:none", "-Xlint:-deprecation", "-Xlint:-unchecked"))
}
withType<Test> {
useJUnitPlatform()
2022-02-13 18:09:01 +01:00
// Viewable packets make tracking harder. Could be re-enabled later.
jvmArgs("-Dminestom.viewable-packet=false")
jvmArgs("-Dminestom.inside-test=true")
2022-01-01 18:27:52 +01:00
}
}