mirror of
https://github.com/corda/corda.git
synced 2025-03-14 00:06:45 +00:00
Merge pull request #888 from roastario/add_post_process_tarballing_task
add post process step to build tarball from node distribution
This commit is contained in:
commit
7c8038f388
16
node/dist/build.gradle
vendored
16
node/dist/build.gradle
vendored
@ -6,6 +6,7 @@ evaluationDependsOn(":launcher")
|
||||
|
||||
ext {
|
||||
outputDir = "$buildDir/corda"
|
||||
tarballDir = "$buildDir/distribution"
|
||||
}
|
||||
|
||||
def tmpDir = "${buildDir}/tmp/"
|
||||
@ -152,6 +153,19 @@ if (isLinux || isMac) {
|
||||
println("${outputDir}")
|
||||
}
|
||||
}
|
||||
}else{
|
||||
|
||||
task buildCordaTarball(type: Tar, dependsOn: [buildNode]) {
|
||||
from outputDir
|
||||
compression = Compression.BZIP2
|
||||
baseName = 'corda-enterprise-distribution'
|
||||
destinationDir = file(tarballDir)
|
||||
extension = "tar.bz2"
|
||||
|
||||
doLast{
|
||||
println("Distribution tarball available at:")
|
||||
println("${tarballDir}/${baseName}.${extension}")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
println("Not running on *nix, disabling distribution generation")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user