Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-09-29 22:50:15 +02:00
3c41211163
There is one major change: we now have a separate artifact for the annotation processor. As for NullAway, we are currently exempting the clientbound join game/respawn packets. They are ugly and need to be refactored.
17 Zeilen
651 B
Groovy
17 Zeilen
651 B
Groovy
dependencies {
|
|
annotationProcessor("com.uber.nullaway:nullaway:0.9.1")
|
|
testAnnotationProcessor("com.uber.nullaway:nullaway:0.9.1")
|
|
errorprone("com.google.errorprone:error_prone_core:2.6.0")
|
|
}
|
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
options.errorprone {
|
|
allErrorsAsWarnings = true
|
|
error("NullAway")
|
|
|
|
option("NullAway:AnnotatedPackages", "com.velocitypowered")
|
|
option("NullAway:ExcludedClasses",
|
|
"com.velocitypowered.proxy.network.packet.clientbound.ClientboundJoinGamePacket," +
|
|
"com.velocitypowered.proxy.network.packet.clientbound.ClientboundRespawnPacket")
|
|
}
|
|
} |