{ "vars": { "version": "%project.git_branch_version%", "out_path": "./pack" }, "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" } ], "gen" : [{ "cmd" : "dproto" }], "build": [ { "shell": "mvn package -DskipTests", "check": "BUILD SUCCESS" }, { "func": "cp", "from": "./target/sydapi-database-1.0.jar", "to": "%out_path%/jar/sydapi-database-1.0.jar" }, { "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%.%project.git_commit_hash%.zip" } ] }