Disable deprecation lint for testLatestDeps (#5208)

This commit is contained in:
Anuraag Agrawal 2022-01-24 16:48:46 +09:00 committed by GitHub
parent e04f52b9db
commit 74d428dbd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -78,6 +78,16 @@ configurations {
if (testLatestDeps) {
afterEvaluate {
tasks {
withType<JavaCompile>().configureEach {
with(options) {
// We may use methods that are deprecated in future versions, we check lint on the normal
// build and don't need this for testLatestDeps.
compilerArgs.add("-Xlint:-deprecation")
}
}
}
if (tasks.names.contains("latestDepTest")) {
val latestDepTest by tasks.existing
tasks.named("test").configure {