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