upgrade: sc:cp 1.5.4

This commit is contained in:
CaiHQ 2022-05-20 09:23:29 +08:00
parent fa9077a3ad
commit 59cb238095
2 changed files with 9 additions and 9 deletions

View File

@ -1,11 +1,11 @@
buildscript {
repositories{
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath "org.bdware.bdcontract:simple-ypk-packer:0.5.0"
classpath "org.bdware.bdcontract:ypk-deploy-tool:0.4.0"
classpath "org.bdware.bdcontract:ypk-deploy-tool:0.5.0"
}
}
plugins {
@ -40,7 +40,7 @@ sourceSets {
dependencies {
api 'org.apache.logging.log4j:log4j-core:2.17.2'
api 'org.apache.logging.log4j:log4j-api:2.17.2'
implementation 'org.bdware.sc:cp:1.5.3'
implementation 'org.bdware.sc:cp:1.5.4'
testImplementation 'junit:junit:4.13.2'
}
@ -74,13 +74,13 @@ task copyJar(type: Copy, dependsOn: [":backend:jar", ":backend:copyLibs"]) {
def reltivePath = "./backend"
//reltivePath="."
def currVersion = "1.2.0"
task grepCP (dependsOn:["copyJar"]){
task grepCP(dependsOn: ["copyJar"]) {
doLast {
org.bdware.datanet.YPKPacker.grepJarByCPVersion("${reltivePath}/build/output/libs",org.bdware.datanet.CPVersion.cp_1_5_3)
org.bdware.datanet.YPKPacker.grepJarByCPVersion("${reltivePath}/build/output/libs", org.bdware.datanet.CPVersion.cp_1_5_3)
}
}
task buildZip(type: Zip, dependsOn: ["copyAssets", "copyJar", "copyYJS","grepCP"]) {
task buildZip(type: Zip, dependsOn: ["copyAssets", "copyJar", "copyYJS", "grepCP"]) {
from './build/output/'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = 'contractexample.zip'
@ -92,7 +92,7 @@ task buildYPK(dependsOn: ["buildZip"]) {
org.bdware.datanet.YPKPacker.staticPack("${reltivePath}/build/contractexample.zip", "${reltivePath}/build/contractexample-${currVersion}.ypk")
}
}
task deploy(dependsOn: ["buildYPK"]){
task deploy(dependsOn: ["buildYPK"]) {
doLast {
org.bdware.ypkdeploy.HTTPTool.batchRun("./backend/deployconfig.json", true)
}

View File

@ -1,9 +1,9 @@
{
"main": "main.yjs",
"memory": "kill,init",
"memory": "kill",
"doi": "Contract_1172400934",
"insnLimit": 0,
"buildTime": 1635385270646,
"builder": "ContractEngine",
"startAtUnpack": true
"startAtUnpack": false
}