public void execute(final Exec t) { t.setDescription("Removes last commit, using 'reset --soft HEAD~'"); t.commandLine("git", "reset", "--soft", "HEAD~"); } });
public void execute(final Exec t) { t.setDescription("Stashes current changes"); t.commandLine("git", "stash"); t.mustRunAfter(SOFT_RESET_COMMIT_TASK); } });
public void execute(final Exec t) { t.setDescription("Deletes version tag '" + getTag(conf, project) + "'"); t.commandLine("git", "tag", "-d", getTag(conf, project)); t.mustRunAfter(performPush); } });
private Exec createExecuteModelsGeneratorTask(Project project, Task dependencyTask) { return project.getTasks().create("executeModelGeneratorScript", Exec.class, exec -> { exec.dependsOn(dependencyTask); exec.workingDir(createFileFromPath(generatorScriptDir.get())); exec.commandLine(createFileFromPath(generatorScriptFile.get())).setArgs(getScriptArguments()); exec.execute(); }); }
public void execute(final Exec t) { //Travis default clone is shallow which will prevent correct release notes generation for repos with lots of commits t.commandLine("git", "fetch", "--unshallow"); t.setDescription("Ensures good chunk of recent commits is available for release notes automation. Runs: " + t.getCommandLine()); t.setIgnoreExitValue(true); t.doLast(new Action<Task>() { public void execute(Task task) { if (t.getExecResult().getExitValue() != 0) { LOG.lifecycle(" Following git command failed and will be ignored:" + "\n " + StringUtil.join(t.getCommandLine(), " ") + "\n Most likely the repository already contains all history."); } } }); } });
+ "generated from your Conjure definitions."); task.setGroup(TASK_GROUP); task.commandLine("python", "setup.py", "build", "--build-base", buildDir, "egg_info", "--egg-base", buildDir, "sdist", "--dist-dir", distDir, "bdist_wheel", "--universal", "--dist-dir", distDir);
task.commandLine("npm", "install", "--no-package-lock"); task.workingDir(srcDirectory); task.dependsOn(compileConjureTypeScript); "Runs `npm tsc` to compile generated TypeScript files into JavaScript files."); task.setGroup(TASK_GROUP); task.commandLine("npm", "run-script", "build"); task.workingDir(srcDirectory); task.dependsOn(installTypeScriptDependencies); + "generated from your Conjure definitions."); task.setGroup(TASK_GROUP); task.commandLine("npm", "publish"); task.workingDir(srcDirectory); task.dependsOn(compileConjureTypeScript);