Skip to content

Commit 95ba392

Browse files
committed
Mark Gradle API incubating
1 parent 12bfbaf commit 95ba392

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/main/java/de/thetaphi/forbiddenapis/gradle/CheckForbiddenApis.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
import org.gradle.api.DefaultTask;
3636
import org.gradle.api.GradleException;
37+
import org.gradle.api.Incubating;
3738
import org.gradle.api.InvalidUserDataException;
3839
import org.gradle.api.file.FileCollection;
3940
import org.gradle.api.file.FileTree;
@@ -231,34 +232,39 @@ public Set<String> getBundledSignatures() {
231232
public void setBundledSignatures(Set<String> bundledSignatures) {
232233
data.bundledSignatures = bundledSignatures;
233234
}
235+
234236
/**
235-
*Aa list of forbidden API signatures for which violations should not be reported at all (i.e. neither fail the build nor appear in the logs). This takes precedence over {@link #getIgnoreFailures()} and {@link #getSignaturesWithSeverityWarn()}.
237+
* A set of forbidden API signatures for which violations should not be reported at all (i.e. neither fail the build nor appear in the logs). This takes precedence over {@link #getIgnoreFailures()} and {@link #getSignaturesWithSeverityWarn()}.
236238
* In order to be effective the signature must be given in either {@link #getSignaturesFiles()}, {@link #getBundledSignatures()}, or {@link #getSignatures}.
237239
* @since 3.9
238240
*/
239241
@Input
240242
@Optional
243+
@Incubating
241244
public Set<String> getSignaturesWithSeveritySuppress() {
242245
return data.signaturesWithSeveritySuppress;
243246
}
244247

245248
/** @see #getSignaturesWithSeveritySuppress */
249+
@Incubating
246250
public void setSignaturesWithSeveritySuppress(Set<String> signatures) {
247251
data.signaturesWithSeveritySuppress = signatures;
248252
}
249253

250254
/**
251-
* A list of forbidden API signatures for which violations should lead to a warning only (i.e. not fail the build). This takes precedence over {@link #getIgnoreFailures()}.
255+
* A set of forbidden API signatures for which violations should lead to a warning only (i.e. not fail the build). This takes precedence over {@link #getIgnoreFailures()}.
252256
* In order to be effective the signature must be given in either {@link #getSignaturesFiles()}, {@link #getBundledSignatures()}, or {@link #getSignatures}.
253257
* @since 3.9
254258
*/
255259
@Input
256260
@Optional
261+
@Incubating
257262
public Set<String> getSignaturesWithSeverityWarn() {
258263
return data.signaturesWithSeverityWarn;
259264
}
260265

261266
/** @see #getSignaturesWithSeverityWarn */
267+
@Incubating
262268
public void setSignaturesWithSeverityWarn(Set<String> signatures) {
263269
data.signaturesWithSeverityWarn = signatures;
264270
}

0 commit comments

Comments
 (0)