-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle.kts
executable file
·37 lines (30 loc) · 1.23 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.kotlinxSerialization) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.gradleVersions)
alias(libs.plugins.firebase.googleServices) apply false
alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.android.test) apply false
alias(libs.plugins.baselineprofile) apply false
}
tasks.withType<DependencyUpdatesTask> {
gradleReleaseChannel = "current"
rejectVersionIf {
fun String.isStableVersion(): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { contains(it, ignoreCase = true) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
return stableKeyword || regex.matches(this)
}
candidate.version.isStableVersion() != currentVersion.isStableVersion()
}
}
task<Delete>("clean") {
delete(layout.buildDirectory)
}