67 lines
1.3 KiB
JSON
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": "mv",
|
|
"from": "%target_f1%",
|
|
"to": "%target_t1%"
|
|
},
|
|
{
|
|
"func": "mv",
|
|
"from": "%target_f2%",
|
|
"to": "%target_t2%"
|
|
},
|
|
{
|
|
"func": "zip",
|
|
"from": "%out_path%",
|
|
"to": "%out_path%/sydapi-%version%.zip"
|
|
}
|
|
]
|
|
|
|
}
|