diff --git a/build.gradle b/build.gradle index 0e5d706b97dd7e0ba9d7b2d7a1e28ec245de9aae..6b19fb35f2dc2d05587ddb3dc5bb9ee0973267f1 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 17f0e3514c60deaffdf5c3d95699838c9d2e5c59..068b7622f8e15ba7f7c5ab339f417dc153c60778 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