|
34 | 34 |
|
35 | 35 | import org.gradle.api.DefaultTask; |
36 | 36 | import org.gradle.api.GradleException; |
| 37 | +import org.gradle.api.Incubating; |
37 | 38 | import org.gradle.api.InvalidUserDataException; |
38 | 39 | import org.gradle.api.file.FileCollection; |
39 | 40 | import org.gradle.api.file.FileTree; |
@@ -231,34 +232,39 @@ public Set<String> getBundledSignatures() { |
231 | 232 | public void setBundledSignatures(Set<String> bundledSignatures) { |
232 | 233 | data.bundledSignatures = bundledSignatures; |
233 | 234 | } |
| 235 | + |
234 | 236 | /** |
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()}. |
236 | 238 | * In order to be effective the signature must be given in either {@link #getSignaturesFiles()}, {@link #getBundledSignatures()}, or {@link #getSignatures}. |
237 | 239 | * @since 3.9 |
238 | 240 | */ |
239 | 241 | @Input |
240 | 242 | @Optional |
| 243 | + @Incubating |
241 | 244 | public Set<String> getSignaturesWithSeveritySuppress() { |
242 | 245 | return data.signaturesWithSeveritySuppress; |
243 | 246 | } |
244 | 247 |
|
245 | 248 | /** @see #getSignaturesWithSeveritySuppress */ |
| 249 | + @Incubating |
246 | 250 | public void setSignaturesWithSeveritySuppress(Set<String> signatures) { |
247 | 251 | data.signaturesWithSeveritySuppress = signatures; |
248 | 252 | } |
249 | 253 |
|
250 | 254 | /** |
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()}. |
252 | 256 | * In order to be effective the signature must be given in either {@link #getSignaturesFiles()}, {@link #getBundledSignatures()}, or {@link #getSignatures}. |
253 | 257 | * @since 3.9 |
254 | 258 | */ |
255 | 259 | @Input |
256 | 260 | @Optional |
| 261 | + @Incubating |
257 | 262 | public Set<String> getSignaturesWithSeverityWarn() { |
258 | 263 | return data.signaturesWithSeverityWarn; |
259 | 264 | } |
260 | 265 |
|
261 | 266 | /** @see #getSignaturesWithSeverityWarn */ |
| 267 | + @Incubating |
262 | 268 | public void setSignaturesWithSeverityWarn(Set<String> signatures) { |
263 | 269 | data.signaturesWithSeverityWarn = signatures; |
264 | 270 | } |
|
0 commit comments