From 04ffc2cfc5ae01a178a1f56b10cd5feea9be62f5 Mon Sep 17 00:00:00 2001
From: bclayton-usgs <bclayton@usgs.gov>
Date: Tue, 2 Jun 2020 13:43:34 -0600
Subject: [PATCH] update spotbugs

---
 build.gradle      | 14 ++++++++------
 gradle.properties |  5 ++++-
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/build.gradle b/build.gradle
index dfb23e2..347e0cf 100644
--- a/build.gradle
+++ b/build.gradle
@@ -5,9 +5,9 @@ plugins {
   id "net.ltgt.apt-eclipse" version "0.21"
   id "eclipse-wtp"
   id "jacoco"
-  id "com.star-zero.gradle.githook" version "1.2.0"
-  id "com.github.spotbugs" version "3.0.0"
-  id "com.diffplug.gradle.spotless" version "3.27.1"
+  id "com.star-zero.gradle.githook" version "${githooksVersion}"
+  id "com.github.spotbugs" version "${spotbugsVersion}"
+  id "com.diffplug.gradle.spotless" version "${spotlessVersion}"
 }
 
 sourceCompatibility = JavaVersion.VERSION_11
@@ -108,9 +108,11 @@ tasks.withType(JavaExec) {
 }
 
 /* Add HTML reports to SpotBugs */
-tasks.withType(com.github.spotbugs.SpotBugsTask) {
+tasks.withType(com.github.spotbugs.snom.SpotBugsTask) {
   reports {
-    xml.enabled = false
-    html.enabled = true
+    html {
+      enabled true
+      stylesheet = 'fancy-hist.xsl'
+    }
   }
 }
diff --git a/gradle.properties b/gradle.properties
index dc81c77..4c0bc34 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,7 +1,10 @@
+githooksVersion = 1.2.0
 jacksonVersion = 2.9.0
 junitVersion = 5.5.2
 logbackVersion = 1.2.3
 mnVersion = 1.3.3
 mnOpenAPIVersion = 1.4.0
-swaggerVersion = 2.1.1
 nshmFaultSectionsTag = v0.1
+spotbugsVersion = 4.2.4
+spotlessVersion = 4.1.0
+swaggerVersion = 2.1.1
-- 
GitLab