-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
42 lines (33 loc) · 1.05 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
38
39
40
41
42
@file:Suppress("DSL_SCOPE_VIOLATION", "SpellCheckingInspection")
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import org.jetbrains.kotlin.util.capitalizeDecapitalize.toLowerCaseAsciiOnly
plugins {
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.spotless)
alias(libs.plugins.dependency.updates)
}
val spotlessId = libs.plugins.spotless.get().pluginId
allprojects {
apply { plugin(spotlessId) }
spotless {
kotlin {
target("**/*.kt")
targetExclude("$buildDir/**/*.kt")
targetExclude("bin/**/*.kt")
ktlint(libs.versions.ktlint.get())
}
}
repositories {
mavenCentral()
}
group = properties["ArtifactGroup"].toString()
version = properties["ArtifactVersion"].toString()
}
tasks.withType<DependencyUpdatesTask> {
rejectVersionIf {
val version = candidate.version.toLowerCaseAsciiOnly()
listOf("-alpha", "-beta", "-rc")
.any { it in version }
}
}