Tweak -Xlint warnings
This now catches a few more places we needed -Xlint:-options.
InProcessSocketAddress is technically already in our stable API, so I
maintained its current serialVersionUID.
diff --git a/build.gradle b/build.gradle
index eaf0eaa..50f9de3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -30,11 +30,15 @@
}
[compileJava, compileTestJava].each() {
- it.options.compilerArgs += ["-Xlint:unchecked", "-Xlint:deprecation", "-Xlint:-options",
- "-Xlint:rawtypes"]
+ it.options.compilerArgs += ["-Xlint:all", "-Xlint:-options"]
it.options.encoding = "UTF-8"
}
+ compileTestJava {
+ // serialVersionUID is basically guaranteed to be useless in our tests
+ options.compilerArgs += ["-Xlint:-serial"]
+ }
+
jar.manifest {
attributes('Implementation-Title': name,
'Implementation-Version': version,