更新脚本
This commit is contained in:
parent
dd63df5abb
commit
e18cfab77d
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@
|
|||||||
/.DS_Store
|
/.DS_Store
|
||||||
src/test/java/com/sunyard/sydapi/sample/*.*
|
src/test/java/com/sunyard/sydapi/sample/*.*
|
||||||
*.p7
|
*.p7
|
||||||
|
/pack/
|
||||||
|
|||||||
73
kit.json
Normal file
73
kit.json
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
"vars": {
|
||||||
|
"version": "%project.git_branch_version%",
|
||||||
|
"out_path": "./pack",
|
||||||
|
"target_f1": "./target/sydapi4j-jar-with-dependencies.jar",
|
||||||
|
"target_t1": "%out_path%/sydapi4j-jar-with-dependencies.jar",
|
||||||
|
"target_f2": "./target/sydapi4j.jar",
|
||||||
|
"target_t2": "%out_path%/sydapi4j.jar"
|
||||||
|
},
|
||||||
|
"clear": [
|
||||||
|
{
|
||||||
|
"func": "rmdir",
|
||||||
|
"path": "%out_path%"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dependencies": [{
|
||||||
|
"func" : "pom",
|
||||||
|
"xml" : "%out_path%/jar"
|
||||||
|
}, {
|
||||||
|
"shell" : "mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=%out_path%/jar/dependences",
|
||||||
|
"check": "BUILD SUCCESS"
|
||||||
|
}],
|
||||||
|
"gen" : [{
|
||||||
|
"shell" : "dproto"
|
||||||
|
}],
|
||||||
|
"build": [
|
||||||
|
{
|
||||||
|
"cmd" : "init"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"shell": "mvn package -DskipTests",
|
||||||
|
"check": "BUILD SUCCESS"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"func": "cp",
|
||||||
|
"from": "%target_f1%",
|
||||||
|
"to": "%target_t1%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"func": "cp",
|
||||||
|
"from": "%target_f2%",
|
||||||
|
"to": "%target_t2%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"func": "zip",
|
||||||
|
"from": "%out_path%",
|
||||||
|
"to": "%out_path%/sydapi-%version%.zip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"func": "open",
|
||||||
|
"path": "%out_path%"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user