diff --git a/build.gradle b/build.gradle index be00f177c89dbca503da084585444a7e1f88996a..f00a9e1140396a7d78c969cea690813f9d250feb 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)) } }