private void configureBuildDependents(Project project) { DefaultTask buildTask = project.getTasks().add(BUILD_DEPENDENTS_TASK_NAME, DefaultTask.class); buildTask.setDescription( "Assembles and tests this project and all projects that depend on it."); buildTask.setGroup(BasePlugin.BUILD_GROUP); buildTask.dependsOn(BUILD_TASK_NAME); }
private void configureBuild(Project project) { DefaultTask buildTask = project.getTasks().add(BUILD_TASK_NAME, DefaultTask.class); buildTask.setDescription("Assembles and tests this project."); buildTask.setGroup(BasePlugin.BUILD_GROUP); buildTask.dependsOn(BasePlugin.ASSEMBLE_TASK_NAME); buildTask.dependsOn(CHECK_TASK_NAME); }
@Override public void apply(final Project project) { DefaultTask javaTask = project.getTasks().create("javaTask", MyJavaTask.class); javaTask.setDescription("javaTask Demo"); DefaultTask javaXTask = project.getTasks().create("javaXTask", MyOtherJavaTask.class); javaXTask.setDescription("javaXTask Demo"); }
private void configureBuildNeeded(Project project) { DefaultTask buildTask = project.getTasks().add(BUILD_NEEDED_TASK_NAME, DefaultTask.class); buildTask.setDescription("Assembles and tests this project and all projects it depends on."); buildTask.setGroup(BasePlugin.BUILD_GROUP); buildTask.dependsOn(BUILD_TASK_NAME); }