打包规则
This commit is contained in:
parent
fbdc8d8b30
commit
cb0d4e6e9f
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/.idea/
|
||||
/target/
|
||||
/pack/
|
||||
|
||||
Binary file not shown.
37
kit.json
37
kit.json
@ -1,11 +1,7 @@
|
||||
{
|
||||
"vars": {
|
||||
"version": "git()",
|
||||
"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"
|
||||
"version": "%project.git_branch_version%",
|
||||
"out_path": "./pack"
|
||||
},
|
||||
"clear": [
|
||||
{
|
||||
@ -31,35 +27,32 @@
|
||||
"path": "%out_path%/doc"
|
||||
}
|
||||
],
|
||||
"dependencies": [{
|
||||
"func" : "pom",
|
||||
"xml" : "%out_path%/jar"
|
||||
}, {
|
||||
"cmd" : "mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=%out_path%/jar/dependences",
|
||||
"check": "BUILD SUCCESS"
|
||||
}],
|
||||
"gen" : [{
|
||||
"cmd" : "dproto"
|
||||
}],
|
||||
"build": [
|
||||
{
|
||||
"cmd": "mvn package -DskipTests",
|
||||
"shell": "mvn package -DskipTests",
|
||||
"check": "BUILD SUCCESS"
|
||||
},
|
||||
{
|
||||
"func": "rename",
|
||||
"from": "%target_f1%",
|
||||
"to": "%target_t1%"
|
||||
"func": "cp",
|
||||
"from": "./target/sydapi-database-1.0.jar",
|
||||
"to": "%out_path%/jar/sydapi-database-1.0.jar"
|
||||
},
|
||||
{
|
||||
"func": "rename",
|
||||
"from": "%target_f2%",
|
||||
"to": "%target_t2%"
|
||||
"shell" : "mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=%out_path%/jar/dependences",
|
||||
"check": "BUILD SUCCESS"
|
||||
},
|
||||
{
|
||||
"func": "cp",
|
||||
"from": "./doc",
|
||||
"to": "%out_path%/doc"
|
||||
},
|
||||
{
|
||||
"func": "zip",
|
||||
"from": "%out_path%",
|
||||
"to": "%out_path%/sydapi-%version%.zip"
|
||||
"from": "./%out_path%/*",
|
||||
"to": "%out_path%/sydapi-%version%.%project.git_commit_hash%.zip"
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user