Add a VERSION file to the CLI zip
@@ -49,3 +49,21 @@ processResources {
)
}
}
+
+task versionFile {
+ doLast {
+ project.layout.buildDirectory.file('VERSION').get().asFile.text = project.version
+ }
+}
+
+classes.dependsOn(versionFile)
+
+distributions {
+ main {
+ contents {
+ from('build') {
+ include 'VERSION'
+ }
+ }
+ }
+}
\ No newline at end of file
