Last active
February 26, 2018 05:41
-
-
Save bytekast/0ac7fbef6f8e7ebc4b14f73957b18531 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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