43
43
import org .gradle .api .specs .Spec ;
44
44
import org .gradle .api .tasks .Input ;
45
45
import org .gradle .api .tasks .InputFiles ;
46
+ import org .gradle .api .tasks .Internal ;
46
47
import org .gradle .api .tasks .Optional ;
47
48
import org .gradle .api .tasks .OutputDirectories ;
48
49
import org .gradle .api .tasks .ParallelizableTask ;
@@ -123,8 +124,8 @@ public class CheckForbiddenApis extends DefaultTask implements PatternFilterable
123
124
* Directories with the class files to check.
124
125
* Defaults to current sourseSet's output directory (Gradle 2/3) or output directories (Gradle 4.0+).
125
126
*/
126
- @ OutputDirectories
127
127
// no @InputDirectories, we use separate getter for a list of all input files
128
+ @ Internal
128
129
public FileCollection getClassesDirs () {
129
130
return classesDirs ;
130
131
}
@@ -143,6 +144,7 @@ public void setClassesDirs(FileCollection classesDirs) {
143
144
* throw an exception!
144
145
*/
145
146
@ Deprecated
147
+ @ Internal
146
148
public File getClassesDir () {
147
149
final FileCollection col = getClassesDirs ();
148
150
return (col == null ) ? null : col .getSingleFile ();
@@ -161,6 +163,7 @@ public void setClassesDir(File classesDir) {
161
163
}
162
164
163
165
/** Returns the pattern set to match against class files in {@link #getClassesDir()}. */
166
+ @ Internal
164
167
public PatternSet getPatternSet () {
165
168
return patternSet ;
166
169
}
@@ -406,7 +409,7 @@ public void setTargetCompatibility(String targetCompatibility) {
406
409
* The default is a single include with pattern '**/*.class'
407
410
*/
408
411
@ Override
409
- @ Input
412
+ @ Internal
410
413
public Set <String > getIncludes () {
411
414
return getPatternSet ().getIncludes ();
412
415
}
@@ -423,7 +426,7 @@ public CheckForbiddenApis setIncludes(Iterable<String> includes) {
423
426
* Set of patterns matching class files to be excluded from checking.
424
427
*/
425
428
@ Override
426
- @ Input
429
+ @ Internal
427
430
public Set <String > getExcludes () {
428
431
return getPatternSet ().getExcludes ();
429
432
}
0 commit comments