-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
54 lines (49 loc) · 1.14 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
plugins {
id("org.jetbrains.kotlin.multiplatform") version "1.9.0"
id("org.jetbrains.kotlin.plugin.atomicfu") version "1.9.0"
}
group = "com.example"
atomicfuCompilerPlugin {
isJvmIrTransformationEnabled = true
isJsIrTransformationEnabled = true
}
kotlin {
@Suppress("OPT_IN_USAGE")
targetHierarchy.default()
jvm {
jvmToolchain(11)
compilations.all {
kotlinOptions.jvmTarget = "11"
}
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
js(IR) {
binaries.library()
// browser()
nodejs()
}
mingwX64()
val hostOs = System.getProperty("os.name")
if (hostOs == "Linux") {
linuxX64()
}
if (hostOs == "Mac OS X") {
macosX64()
// macosArm64()
}
@Suppress("UNUSED_VARIABLE")
sourceSets {
val commonMain by getting {
dependencies {
api("org.jetbrains.kotlinx:atomicfu:0.22.0")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
}
}