diff --git a/VERSION b/VERSION index 524cb55..26aaba0 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.1.1 +1.2.0 diff --git a/build.gradle b/build.gradle index 73d1285..8015733 100644 --- a/build.gradle +++ b/build.gradle @@ -97,3 +97,26 @@ modularity.patchModule('org.eclipse.jgit', 'org.eclipse.jgit.ssh.jsch-5.11.0.202 modularity.patchModule('io.micronaut.runtime', "micronaut-context-${ext.micronautVersion}.jar") mainClassName = "$moduleName/devex.DevexCommand" + +distributions { + main { + contents { + from("${project.rootProject.projectDir}/LICENSE") { + into '' + } + } + } +} + +task exploded(type: Copy, dependsOn: ['distZip']) { + from zipTree(distZip.outputs.files.singleFile) + into "${project.buildDir}/exploded" + eachFile { FileCopyDetails fcd -> + fcd.relativePath = new RelativePath(true, fcd.relativePath.segments.drop(1)) + } + onlyIf { + distZip.outputs.files.singleFile.exists() + } +} + +assemble.dependsOn('exploded')