File tree 1 file changed +2
-2
lines changed
src/main/resources/de/thetaphi/forbiddenapis/gradle
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ project.sourceSets.all{ sourceSet ->
42
42
String sourceSetTaskName = sourceSet. getTaskName(FORBIDDEN_APIS_TASK_NAME , null );
43
43
def sourceSetTask = TASK_AVOIDANCE_AVAILABLE ? project. tasks. register(sourceSetTaskName, CheckForbiddenApis . class) :
44
44
project. tasks. create(sourceSetTaskName, CheckForbiddenApis . class);
45
+ def templateClassesDirs = project. files();
46
+ def templateClasspath = project. files();
45
47
sourceSetTask. configure {
46
48
description = " Runs forbidden-apis checks on '${ sourceSet.name} ' classes." ;
47
49
dependsOn(sourceSet. output);
@@ -60,9 +62,7 @@ project.sourceSets.all{ sourceSet ->
60
62
return extension[key]
61
63
})
62
64
}
63
- ConfigurableFileCollection templateClassesDirs = project. files();
64
65
classesDirs = { templateClassesDirs. from(sourceSet. output. hasProperty(' classesDirs' ) ? sourceSet. output. classesDirs : sourceSet. output. classesDir) }
65
- ConfigurableFileCollection templateClasspath = project. files();
66
66
classpath = { templateClasspath. from(sourceSet. compileClasspath) }
67
67
targetCompatibility = targetCompatibilityGetter
68
68
}
You can’t perform that action at this time.
0 commit comments