build: reject updates for AGP

This commit is contained in:
Harsh Shandilya 2022-03-25 15:37:59 +00:00 committed by GitHub
parent c657ed4fa8
commit cb81b58653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,12 @@ fun isNonStable(version: String): Boolean {
}
tasks.withType<DependencyUpdatesTask>().configureEach {
rejectVersionIf { isNonStable(candidate.version) && !isNonStable(currentVersion) }
rejectVersionIf {
when (candidate.group) {
"com.android.application", "com.android.library" -> true
else -> isNonStable(candidate.version) && !isNonStable(currentVersion)
}
}
checkForGradleUpdate = false
checkBuildEnvironmentConstraints = true
outputFormatter = "json"