Skip to content
Snippets Groups Projects
Commit 1b9d6881 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

simplify

parent 379bf6d5
No related branches found
No related tags found
1 merge request!266Report Version
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))
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment