mirror of
https://gitee.com/BDWare/contract-java-example.git
synced 2025-01-10 09:54:08 +00:00
upgrade: sc:cp 1.5.4
This commit is contained in:
parent
fa9077a3ad
commit
59cb238095
@ -1,11 +1,11 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories{
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath "org.bdware.bdcontract:simple-ypk-packer:0.5.0"
|
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 {
|
plugins {
|
||||||
@ -40,7 +40,7 @@ sourceSets {
|
|||||||
dependencies {
|
dependencies {
|
||||||
api 'org.apache.logging.log4j:log4j-core:2.17.2'
|
api 'org.apache.logging.log4j:log4j-core:2.17.2'
|
||||||
api 'org.apache.logging.log4j:log4j-api: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'
|
testImplementation 'junit:junit:4.13.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,13 +74,13 @@ task copyJar(type: Copy, dependsOn: [":backend:jar", ":backend:copyLibs"]) {
|
|||||||
def reltivePath = "./backend"
|
def reltivePath = "./backend"
|
||||||
//reltivePath="."
|
//reltivePath="."
|
||||||
def currVersion = "1.2.0"
|
def currVersion = "1.2.0"
|
||||||
task grepCP (dependsOn:["copyJar"]){
|
task grepCP(dependsOn: ["copyJar"]) {
|
||||||
doLast {
|
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/'
|
from './build/output/'
|
||||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
archiveFileName = 'contractexample.zip'
|
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")
|
org.bdware.datanet.YPKPacker.staticPack("${reltivePath}/build/contractexample.zip", "${reltivePath}/build/contractexample-${currVersion}.ypk")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
task deploy(dependsOn: ["buildYPK"]){
|
task deploy(dependsOn: ["buildYPK"]) {
|
||||||
doLast {
|
doLast {
|
||||||
org.bdware.ypkdeploy.HTTPTool.batchRun("./backend/deployconfig.json", true)
|
org.bdware.ypkdeploy.HTTPTool.batchRun("./backend/deployconfig.json", true)
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"main": "main.yjs",
|
"main": "main.yjs",
|
||||||
"memory": "kill,init",
|
"memory": "kill",
|
||||||
"doi": "Contract_1172400934",
|
"doi": "Contract_1172400934",
|
||||||
"insnLimit": 0,
|
"insnLimit": 0,
|
||||||
"buildTime": 1635385270646,
|
"buildTime": 1635385270646,
|
||||||
"builder": "ContractEngine",
|
"builder": "ContractEngine",
|
||||||
"startAtUnpack": true
|
"startAtUnpack": false
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user