-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
85 lines (72 loc) · 1.92 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
plugins {
id("com.android.library")
kotlin("multiplatform")
id("org.jmailen.kotlinter")
jacoco
id("org.jetbrains.dokka")
id("com.vanniktech.maven.publish")
}
apply(from = rootProject.file("gradle/jacoco.gradle.kts"))
kotlin {
explicitApi()
jvmToolchain(libs.versions.jvm.toolchain.get().toInt())
jvm()
js().browser {
testTask {
useMocha {
timeout = "6000ms"
}
}
}
androidTarget().publishAllLibraryVariants()
targets.all {
compilations.all {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.time.ExperimentalTime"
}
}
sourceSets {
val commonMain by getting {
dependencies {
api(libs.kotlinx.coroutines.core)
api(libs.kotlinx.datetime)
}
}
val commonTest by getting {
dependencies {
implementation(projects.test)
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
implementation(libs.kotlinx.coroutines.test)
}
}
val androidMain by getting {
dependencies {
implementation(projects.coroutines)
}
}
val androidUnitTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test-junit"))
}
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}
android {
compileSdk = libs.versions.android.compile.get().toInt()
defaultConfig.minSdk = 16
namespace = "com.juul.tuulbox.temporal"
lint {
abortOnError = true
warningsAsErrors = true
}
}