Adds the given dependencies to this task. See here for a description of the types of objects which can be used as task dependencies.
4950515253545556575859
String taskName = taskConfig.getTaskPrefix() + capitalize(binary.getName()) + capitalize(sourceSet.getFullName()); Task task = tasks.create(taskName, taskConfig.getTaskType()); taskConfig.configureTask(task, binary, sourceSet); task.dependsOn(sourceSet); binary.getTasks().add(task); } } }); }
96979899100101102103104105
return convention.getProjects(); } }); Task projectReportTask = project.getTasks().create(PROJECT_REPORT); projectReportTask.dependsOn(TASK_REPORT, PROPERTY_REPORT, DEPENDENCY_REPORT, HTML_DEPENDENCY_REPORT); projectReportTask.setDescription("Generates a report about your project."); projectReportTask.setGroup("reporting"); } }
4344454647484950515253
String configurationName = StringUtils.uncapitalize(taskName.substring(PREFIX.length())); Configuration configuration = configurations.findByName(configurationName); if (configuration != null) { Task task = tasks.create(taskName); task.dependsOn(configuration.getAllArtifacts()); task.setDescription(String.format("Builds the artifacts belonging to %s.", configuration)); } } } }
163164165166167168169170
}); } private void configureAssemble(Project project) { Task assembleTask = project.getTasks().getByName(ASSEMBLE_TASK_NAME); assembleTask.dependsOn(project.getConfigurations().getByName(Dependency.ARCHIVES_CONFIGURATION).getAllArtifacts().getBuildDependencies()); } }
469470471472473474475476477478479
data.getAssembleTask().dependsOn(variantData.assembleTask); } // flavor combo if (assembleTask != null) { assembleTask.dependsOn(variantData.assembleTask); } } } if (testedVariantData != null) {