Tell animal sniffer gradle plugin to ignore java.util.Objects

This commit is contained in:
ameba23
2021-09-06 12:27:57 +02:00
parent 581ecc9aaa
commit c76d419ecb

View File

@@ -31,6 +31,14 @@ dependencies {
signature 'org.codehaus.mojo.signature:java16:1.1@signature'
}
animalsniffer {
// Allow requireNonNull: Android desugaring rewrites it (so it's safe for us to use),
// and it gets used when passing method references instead of lambdas with Java 11.
// Note that this line allows *all* methods from java.util.Objects.
// That's the best that we can do with the configuration options that Animal Sniffer offers.
ignore 'java.util.Objects'
}
// needed to make test output available to bramble-java
configurations {
testOutput.extendsFrom(testCompile)