sydapi-java-sge-database/kit.json
2022-07-21 13:58:59 +08:00

67 lines
1.3 KiB
JSON

{
"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"
},
"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"
}, {
"cmd" : "mvn dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=%out_path%/jar/dependences",
"check": "BUILD SUCCESS"
}],
"gen" : [{
"cmd" : "dproto"
}],
"build": [
{
"cmd": "mvn package -DskipTests",
"check": "BUILD SUCCESS"
},
{
"func": "rename",
"from": "%target_f1%",
"to": "%target_t1%"
},
{
"func": "rename",
"from": "%target_f2%",
"to": "%target_t2%"
},
{
"func": "zip",
"from": "%out_path%",
"to": "%out_path%/sydapi-%version%.zip"
}
]
}