42
42
import org .gradle .api .tasks .Classpath ;
43
43
import org .gradle .api .tasks .Input ;
44
44
import org .gradle .api .tasks .InputFiles ;
45
+ import org .gradle .api .tasks .Internal ;
45
46
import org .gradle .api .tasks .Optional ;
46
47
import org .gradle .api .tasks .OutputDirectories ;
47
48
import org .gradle .api .tasks .ParallelizableTask ;
@@ -122,8 +123,8 @@ public class CheckForbiddenApis extends DefaultTask implements PatternFilterable
122
123
* Directories with the class files to check.
123
124
* Defaults to current sourseSet's output directory (Gradle 2/3) or output directories (Gradle 4.0+).
124
125
*/
125
- @ OutputDirectories
126
126
// no @InputDirectories, we use separate getter for a list of all input files
127
+ @ Internal
127
128
public FileCollection getClassesDirs () {
128
129
return classesDirs ;
129
130
}
@@ -142,6 +143,7 @@ public void setClassesDirs(FileCollection classesDirs) {
142
143
* throw an exception!
143
144
*/
144
145
@ Deprecated
146
+ @ Internal
145
147
public File getClassesDir () {
146
148
final FileCollection col = getClassesDirs ();
147
149
return (col == null ) ? null : col .getSingleFile ();
@@ -160,6 +162,7 @@ public void setClassesDir(File classesDir) {
160
162
}
161
163
162
164
/** Returns the pattern set to match against class files in {@link #getClassesDir()}. */
165
+ @ Internal
163
166
public PatternSet getPatternSet () {
164
167
return patternSet ;
165
168
}
@@ -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