forked from Bartuzen/qBitController
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
executable file
·30 lines (25 loc) · 972 Bytes
/
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
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.kapt) apply false
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.gradleVersions)
alias(libs.plugins.firebase.googleServices) apply false
alias(libs.plugins.firebase.crashlytics) apply false
}
tasks.withType<DependencyUpdatesTask> {
gradleReleaseChannel = "current"
rejectVersionIf {
val version = candidate.version
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
!isStable
}
}
task<Delete>("clean") {
delete(layout.buildDirectory)
}