-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle.kts
42 lines (37 loc) · 880 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
31
32
33
34
35
36
37
38
39
40
41
42
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.detekt)
classpath(libs.buildscript.dokka)
classpath(libs.buildscript.kotlin)
classpath(libs.buildscript.publish)
}
}
plugins {
base
alias(libs.plugins.conventions)
}
deleteRootBuildDirWhenCleaning()
gradleConventionsDefaults {
kotlin {
jvmTargetVersion = JvmTarget.JVM_1_8
allWarningsAsErrors = true
explicitApiMode = ExplicitApiMode.Strict
}
}
gradleConventionsKmpDefaults {
targets(
KmpTarget.AndroidNative,
KmpTarget.Ios,
KmpTarget.Js,
KmpTarget.Jvm,
KmpTarget.Linux,
KmpTarget.Macos,
KmpTarget.Mingw,
KmpTarget.Tvos,
KmpTarget.WasmJs,
KmpTarget.Watchos,
)
}