sydapi/kit.json
cheney 24161e2ad5 合并
# Conflicts:
#	pom.xml
#	src/main/java/com/sunyard/SydApiException.java
#	src/main/java/racal/sunyard/main/SydApi4j.java
#	src/test/java/com/sunyard/sydapi/test/TestAllMethods.java
2022-10-26 17:24:39 +08:00

91 lines
1.6 KiB
JSON

{
"vars": {
"version": "%project.git_branch_version%",
"out_path": "./pack"
},
"clear": [
{
"func": "rm",
"path": "%out_path%"
},
{
"func": "rm",
"path": "./logs"
}
],
"init": [
{
"func": "mkdir",
"path": "%out_path%"
},
{
"func": "mkdir",
"path": "%out_path%/jar"
},
{
"func": "mkdir",
"path": "%out_path%/jar/dependences"
},
{
"func": "mkdir",
"path": "%out_path%/doc"
}
],
"gen" : [{
"cmd" : "dproto"
}],
"build": [
{
"cmd": "clear"
},
{
"cmd": "init"
},
{
"shell": "mvn package -DskipTests",
"check": "BUILD SUCCESS"
},
{
"func": "cp",
"from": "./target/sydapi4j.jar",
"to": "%out_path%/jar/sydapi4j.jar"
},
{
"func": "cp",
"from": "./target/sydapi4j-jar-with-dependencies.jar",
"to": "%out_path%/jar/sydapi4j-jar-with-dependencies.jar"
},
{
"shell" : "mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=%out_path%/jar/dependences",
"check": "BUILD SUCCESS"
},
{
"func": "cp",
"from": "./doc",
"to": "%out_path%/doc"
},
{
"func": "cp",
"from": "./src/test/java/sample",
"to": "%out_path%/sample"
},
{
"func": "cp",
"from": "./˵Ã÷.txt",
"to": "%out_path%/˵Ã÷.txt"
},
{
"func": "zip",
"from": "%out_path%/*",
"to": "%out_path%/sydapi-%version%.%project.git_commit_hash%.zip",
"vc" : "12M"
},
{
"func": "open",
"path": "%out_path%/"
}
]
}