From b705748295a972f098edc4743fc70d3eac707e56 Mon Sep 17 00:00:00 2001
From: bclayton-usgs <bclayton@usgs.gov>
Date: Tue, 2 Jun 2020 15:02:24 -0600
Subject: [PATCH] update

---
 build.gradle      | 21 +++++++++++----------
 gradle.properties |  7 ++++++-
 2 files changed, 17 insertions(+), 11 deletions(-)

diff --git a/build.gradle b/build.gradle
index 0e5d706..6b19fb3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,13 +1,13 @@
 plugins {
   id "application"
-  id "com.diffplug.gradle.spotless" version "3.27.1"
-  id "com.github.johnrengelman.shadow" version "5.2.0"
-  id "com.github.spotbugs" version "3.0.0"
-  id "com.star-zero.gradle.githook" version "1.2.0"
+  id "com.diffplug.gradle.spotless" version "${spotlessVersion}"
+  id "com.github.johnrengelman.shadow" version "${shadowVersion}"
+  id "com.github.spotbugs" version "${spotbugsVersion}"
+  id "com.star-zero.gradle.githook" version "${githooksVersion}"
   id "eclipse-wtp"
   id "jacoco"
   id "java"
-  id "net.ltgt.apt-eclipse" version "0.21"
+  id "net.ltgt.apt-eclipse" version "${aptEclipseVersion}"
 }
 
 sourceCompatibility = JavaVersion.VERSION_11
@@ -26,7 +26,7 @@ repositories {
 git {
   implementation("https://code.usgs.gov/ghsc/nshmp/nshmp-lib.git", {
     name "nshmp-netcdf-dep--nshmp-lib"
-    tag "v0.0.5"
+    tag "v0.1.0"
   })
 }
 
@@ -106,11 +106,12 @@ tasks.withType(JavaExec) {
 }
 
 /* Add HTML reports to SpotBugs */
-tasks.withType(com.github.spotbugs.SpotBugsTask) {
-  ignoreFailures = false // TODO remove when nshmp-lib is updated
+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 17f0e35..068b762 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,9 +1,14 @@
+aptEclipseVersion = 0.21
 cdmVersion = 5.1.0
+githooksVersion = 1.2.0
 jacksonVersion = 2.9.0
 junitVersion = 5.5.2
 logbackVersion = 1.2.3
+mnOpenAPIVersion = 1.4.0
 mnVersion = 1.3.2
 netcdfVersion = 5.1.0
+shadowVersion = 5.2.0
 slfVersion = 1.7.30
+spotbugsVersion = 4.2.4
+spotlessVersion = 4.1.0
 swaggerVersion = 2.1.1
-mnOpenAPIVersion = 1.4.0
-- 
GitLab