From 1b9d68819c18d90f755f60b10e5fbeb00feebe18 Mon Sep 17 00:00:00 2001
From: Brandon Clayton <bclayton@usgs.gov>
Date: Tue, 19 Apr 2022 14:05:04 -0600
Subject: [PATCH] simplify

---
 build.gradle | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/build.gradle b/build.gradle
index be00f177..f00a9e11 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,3 @@
-import groovy.json.JsonOutput
-
 plugins {
   id "com.diffplug.spotless"
   id "com.github.spotbugs"
@@ -46,7 +44,8 @@ jar {
     def versionPath = "/resources/main/version.json"
     def versionFile = new File(project.buildDir.toString() + versionPath)
     def details = versionDetails()
-    versionFile.write(JsonOutput.prettyPrint(JsonOutput.toJson(details)))
+    def json = groovy.json.JsonOutput.toJson(details)
+    versionFile.write(groovy.json.JsonOutput.prettyPrint(json))
   }
 }
 
-- 
GitLab