sydapi/kit.json
2022-07-15 14:35:45 +08:00

74 lines
1.4 KiB
JSON

{
"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%"
}
]
}