use of org.itsallcode.openfasttrace.gradle.config.TracingConfig in project openfasttrace-gradle by itsallcode.
the class OpenFastTracePlugin method createTracingTask.
private void createTracingTask(Project project) {
final TraceTask traceTask = createTask(project, "traceRequirements", TraceTask.class);
traceTask.setGroup(TASK_GROUP_NAME);
traceTask.setDescription("Trace requirements and generate tracing report");
final TracingConfig config = getConfig(project);
traceTask.inputDirectories.setFrom(config.inputDirectories);
traceTask.outputFile.set(config.reportFile);
traceTask.reportVerbosity.set(config.reportVerbosity);
traceTask.pathConfig = () -> getPathConfigFromRootProject(project.getAllprojects());
}
use of org.itsallcode.openfasttrace.gradle.config.TracingConfig in project openfasttrace-gradle by itsallcode.
the class OpenFastTracePlugin method createConfigDsl.
private void createConfigDsl(Project project) {
LOG.info("Setting up plugin configuration for project '{}'", project.getName());
final NamedDomainObjectContainer<PathPatternConfig> pathConfig = project.container(PathPatternConfig.class);
final TracingConfig tracingConfig = project.getExtensions().create("requirementTracing", TracingConfig.class, project, pathConfig);
((ExtensionAware) tracingConfig).getExtensions().add("pathConfig", pathConfig);
}
Aggregations