Skip to content

Instantly share code, notes, and snippets.

@bytekast
Last active February 26, 2018 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bytekast/0ac7fbef6f8e7ebc4b14f73957b18531 to your computer and use it in GitHub Desktop.
Save bytekast/0ac7fbef6f8e7ebc4b14f73957b18531 to your computer and use it in GitHub Desktop.
task(buildJson) {
doLast {
new File("$buildDir/build.json").newWriter().withWriter { w ->
w << JsonOutput.toJson([distribution: relativePath(jar.archivePath), version: jar.version])
}
}
}
jar.finalizedBy buildJson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment