Downgrade spotbugs to 5.2.5

6.x has breaking changes need extra care to upgrade.
diff --git a/lib/java/build.gradle b/lib/java/build.gradle
index 43db204..4c842ff 100644
--- a/lib/java/build.gradle
+++ b/lib/java/build.gradle
@@ -41,7 +41,7 @@
     id 'signing'
     id 'pmd'
     id 'com.github.johnrengelman.shadow' version '8.1.1'
-    id "com.github.spotbugs" version "6.0.1"
+    id "com.github.spotbugs" version "5.2.5"
     id "com.diffplug.spotless" version "6.23.2"
 }