{ "vars": { "version": "%project.git_branch_version%", "out_path": "./pack" }, "clear": [ { "func": "rm", "path": "%out_path%" }, { "func": "rm", "path": "./logs" } ], "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": [ { "cmd": "clear" }, { "cmd": "init" }, { "shell": "mvn package -DskipTests", "check": "BUILD SUCCESS" }, { "func": "cp", "from": "./target/sydapi4j.jar", "to": "%out_path%/jar/sydapi4j.jar" }, { "func": "cp", "from": "./target/sydapi4j-jar-with-dependencies.jar", "to": "%out_path%/jar/sydapi4j-jar-with-dependencies.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": "cp", "from": "./src/test/java/sample", "to": "%out_path%/sample" }, { "func": "cp", "from": "./说明.txt", "to": "%out_path%/说明.txt" }, { "func": "zip", "from": "%out_path%/*", "to": "%out_path%/sydapi-%version%.%project.git_commit_hash%.zip", "vc" : "12M" }, { "func": "open", "path": "%out_path%/" } ] }