-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
29 lines (27 loc) · 1.12 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
plugins {
alias(libs.plugins.android.application) apply false // Plugin does not allow being loaded multiple times
alias(libs.plugins.android.library) apply false // Plugin does not allow being loaded multiple times
alias(libs.plugins.kotlin.android) apply false // Plugin does not allow being loaded multiple times
alias(libs.plugins.kotlin.multiplatform) apply false // Plugin does not allow being loaded multiple times
alias(libs.plugins.spotless)
alias(libs.plugins.versions)
}
spotless {
freshmark {
target("**/*.md")
propertiesFile("gradle.properties")
}
kotlin {
target("**/*.kt")
ktlint(libs.versions.ktlint.get()).setEditorConfigPath("${project.rootDir}/.editorconfig")
}
kotlinGradle {
ktlint(libs.versions.ktlint.get()).setEditorConfigPath("${project.rootDir}/.editorconfig")
}
}
tasks.withType<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask> {
rejectVersionIf {
fun isStable(version: String) = Regex("^[0-9,.v-]+(-r)?$").matches(version)
!isStable(candidate.version) && isStable(currentVersion)
}
}