use of org.gradle.api.internal.plugins.DslObject in project gradle-apt-plugin by tbroyer.
the class AptPlugin43to44 method configureCompileTaskForSourceSet.
@Override
protected void configureCompileTaskForSourceSet(Project project, final SourceSet sourceSet, AbstractCompile task, CompileOptions compileOptions) {
compileOptions.setAnnotationProcessorPath(project.files(new Callable<FileCollection>() {
@Override
public FileCollection call() {
return new DslObject(sourceSet).getConvention().getPlugin(AptPlugin.AptSourceSetConvention.class).getAnnotationProcessorPath();
}
}));
compileOptions.setAnnotationProcessorGeneratedSourcesDirectory(project.provider(new Callable<File>() {
@Override
public File call() {
return new DslObject(sourceSet.getOutput()).getConvention().getPlugin(AptPlugin.AptSourceSetOutputConvention.class).getGeneratedSourcesDir();
}
}));
}
Aggregations