-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
72 lines (64 loc) · 1.64 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
import com.vanniktech.maven.publish.SonatypeHost
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
alias(libs.plugins.dokka)
alias(libs.plugins.kmpmt)
alias(libs.plugins.kotlin.multiplatform)
alias(libs.plugins.publish)
}
kotlin {
explicitApi()
androidNativeArm32()
androidNativeArm64()
androidNativeX64()
androidNativeX86()
iosArm64()
iosSimulatorArm64()
iosX64()
jvm {
compilations.configureEach {
compilerOptions.options.apply {
jvmTarget = JvmTarget.JVM_1_8
freeCompilerArgs.add("-Xjvm-default=all")
}
}
}
linuxArm64()
linuxX64()
macosArm64()
macosX64()
mingwX64()
tvosArm64()
tvosSimulatorArm64()
tvosX64()
watchosArm32()
watchosArm64()
watchosDeviceArm64()
watchosSimulatorArm64()
watchosX64()
sourceSets {
commonMain.dependencies {
api(libs.kotlinx.coroutines.core)
api(libs.kotlinx.datetime)
}
commonTest.dependencies {
implementation(libs.kotlin.test.core)
implementation(libs.kotlinx.coroutines.test)
}
}
}
tasks.withType<AbstractTestTask> {
testLogging {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showStandardStreams = true
showStackTraces = true
}
}
mavenPublishing {
publishToMavenCentral(host = SonatypeHost.S01, automaticRelease = true)
signAllPublications()
}
kotlinMissingTargets {
ignore("js", because = "I need to set up js-joda.")
ignore("wasmJs", because = "I need to set up js-joda.")
}