Skip to content

Commit

Permalink
Merge pull request #13 from miguelaferreira/gradle-exploded-task
Browse files Browse the repository at this point in the history
Add gradle exploded task
  • Loading branch information
miguelaferreira authored Oct 24, 2021
2 parents 8361d23 + 2a5f588 commit b686bc2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.1
1.2.0
23 changes: 23 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')

0 comments on commit b686bc2

Please sign in to comment.