-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle.kts
58 lines (47 loc) · 1.47 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
plugins {
alias(libs.plugins.jetbrains.kotlin.multiplatform) apply false
alias(libs.plugins.jetbrains.compose) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.jetbrains.kotlin.android) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.nexus.publish)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.kotlinter)
alias(libs.plugins.binary.compat.validator)
// https://github.com/JetBrains/compose-multiplatform/issues/4773#issuecomment-2100795877
id("convention.multiplatform") apply false
id("convention.publication") apply false
}
group = "com.svenjacobs.reveal"
version = (System.getenv("RELEASE_TAG_NAME") ?: "SNAPSHOT").replace("v", "")
subprojects {
apply(plugin = "org.jmailen.kotlinter")
}
apiValidation {
ignoredProjects += listOf(
"android-tests",
)
@OptIn(kotlinx.validation.ExperimentalBCVApi::class)
klib {
enabled = true
}
}
nexusPublishing {
repositories {
sonatype()
}
}
tasks.withType<DependencyUpdatesTask> {
fun isNonStable(version: String) =
listOf("alpha", "beta", "rc", "eap", "-m", ".m", "-a", "dev").any {
version.lowercase().contains(it)
}
rejectVersionIf {
isNonStable(candidate.version) && !isNonStable(currentVersion)
}
}
val androidMinSdk by extra { 21 }
val androidTargetSdk by extra { 34 }
val androidCompileSdk by extra { 34 }