mirror of
https://gitee.com/BDWare/contract-java-example.git
synced 2026-02-14 16:49:30 +00:00
add deploy task
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
buildscript {
|
||||
repositories{
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
}
|
||||
dependencies {
|
||||
classpath files("buildlibs/simple-ypk-packer-0.3.0.jar")
|
||||
classpath "org.bdware.bdcontract:simple-ypk-packer:0.3.0"
|
||||
classpath "org.bdware.bdcontract:ypk-deploy-tool:0.4.0"
|
||||
}
|
||||
}
|
||||
plugins {
|
||||
@@ -69,7 +74,7 @@ task copyJar(type: Copy, dependsOn: [":backend:jar", ":backend:copyLibs"]) {
|
||||
}
|
||||
def reltivePath = "./backend"
|
||||
//reltivePath="."
|
||||
def currVersion = "0.1.0"
|
||||
def currVersion = "1.1.0"
|
||||
task grepCP (dependsOn:["copyJar"]){
|
||||
doLast {
|
||||
org.bdware.datanet.YPKPacker.grepCPLibWithFilter("${reltivePath}/cplibs/libs","${reltivePath}/build/output/libs","${reltivePath}/grepcp.list")
|
||||
@@ -87,4 +92,9 @@ task buildYPK(dependsOn: ["buildZip"]) {
|
||||
doLast {
|
||||
org.bdware.datanet.YPKPacker.staticPack("${reltivePath}/build/contractexample.zip", "${reltivePath}/build/contractexample-${currVersion}.ypk")
|
||||
}
|
||||
}
|
||||
task deploy(dependsOn: ["buildYPK"]){
|
||||
doLast {
|
||||
org.bdware.ypkdeploy.HTTPTool.batchRun("./backend/deployconfig.json", true)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user