build: upgrade ktfmt

This commit is contained in:
Harsh Shandilya 2022-05-05 09:07:47 +05:30
parent 4e261af246
commit 4a19b4911d
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
2 changed files with 3 additions and 2 deletions

View file

@ -5,7 +5,7 @@
plugins { id("com.diffplug.spotless") }
val KTFMT_VERSION = "0.36"
val KTFMT_VERSION = "0.37"
spotless {
kotlin {

View file

@ -22,7 +22,8 @@ fun isNonStable(version: String): Boolean {
tasks.withType<DependencyUpdatesTask>().configureEach {
rejectVersionIf {
when (candidate.group) {
"com.android.application", "com.android.library" -> true
"com.android.application",
"com.android.library" -> true
else -> isNonStable(candidate.version) && !isNonStable(currentVersion)
}
}