-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
61 lines (53 loc) · 1.31 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
59
60
61
import com.eygraber.conventions.tasks.deleteRootBuildDirWhenCleaning
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
buildscript {
dependencies {
classpath(libs.buildscript.android)
classpath(libs.buildscript.androidCacheFix)
classpath(libs.buildscript.compose.compiler)
classpath(libs.buildscript.compose.jetbrains)
classpath(libs.buildscript.detekt)
classpath(libs.buildscript.dokka)
classpath(libs.buildscript.kotlin)
classpath(libs.buildscript.publish)
}
}
plugins {
base
alias(libs.plugins.conventions)
}
deleteRootBuildDirWhenCleaning()
gradleConventionsDefaults {
android {
sdkVersions(
compileSdk = libs.versions.android.sdk.compile,
targetSdk = libs.versions.android.sdk.target,
minSdk = libs.versions.android.sdk.min
)
}
detekt {
plugins(
libs.detektCompose,
libs.detektEygraber.formatting,
libs.detektEygraber.style
)
}
kotlin {
jvmTargetVersion = JvmTarget.JVM_1_8
explicitApiMode = ExplicitApiMode.Strict
}
}
gradleConventionsKmpDefaults {
webOptions = webOptions.copy(
isNodeEnabled = false,
isBrowserEnabled = true,
)
targets(
KmpTarget.Android,
KmpTarget.Ios,
KmpTarget.Js,
KmpTarget.Jvm,
KmpTarget.WasmJs,
)
}