mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Tidy up gradle usage.
This commit is contained in:
parent
28d7170aca
commit
1187564835
@ -9,8 +9,7 @@ buildscript {
|
|||||||
|
|
||||||
ext.java_home = System.properties.'java.home'
|
ext.java_home = System.properties.'java.home'
|
||||||
ext.pkg_source = "$buildDir/packagesrc"
|
ext.pkg_source = "$buildDir/packagesrc"
|
||||||
ext.dist_name = "demobench-$version"
|
ext.dist_source = "$pkg_source/demobench-$version"
|
||||||
ext.dist_source = "$pkg_source/$dist_name"
|
|
||||||
ext.pkg_version = "$version".indexOf('-') >= 0 ? "$version".substring(0, "$version".indexOf('-')) : "$version"
|
ext.pkg_version = "$version".indexOf('-') >= 0 ? "$version".substring(0, "$version".indexOf('-')) : "$version"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
@ -129,7 +128,7 @@ task javapackage(dependsOn: 'distZip') {
|
|||||||
delete(["$pkg_source", "$buildDir/exedir"])
|
delete(["$pkg_source", "$buildDir/exedir"])
|
||||||
|
|
||||||
copy {
|
copy {
|
||||||
from(zipTree("$buildDir/distributions/${dist_name}.zip"))
|
from(zipTree(distZip.outputs.files.singleFile))
|
||||||
into "$pkg_source"
|
into "$pkg_source"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user