forked from Tinder/StateMachine
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
106 lines (92 loc) · 2.43 KB
/
build.gradle
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
buildscript {
ext.kotlin_version = '1.3.72'
ext.atomicfu_version = '0.14.2'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlinx:atomicfu-gradle-plugin:$atomicfu_version"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
group GROUP
version VERSION_NAME
apply plugin: "org.jetbrains.kotlin.multiplatform"
apply plugin: "kotlinx-atomicfu"
repositories {
mavenCentral()
}
kotlin {
jvm("jvm6")
jvm("jvm8")
js {
browser {
}
nodejs {
}
}
// For ARM, should be changed to iosArm32 or iosArm64
// For Linux, should be changed to e.g. linuxX64
// For MacOS, should be changed to e.g. macosX64
// For Windows, should be changed to e.g. mingwX64
macosX64("macos")
linuxX64()
mingwX64()
sourceSets {
commonMain {
kotlin.srcDir('src/main/')
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlinx:atomicfu-common:$atomicfu_version"
}
}
commonTest {
kotlin.srcDir('src/test/')
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvm6Main {
dependencies {
implementation kotlin('stdlib')
implementation kotlin('test-annotations-common')
}
}
jvm6Test {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
jvm8Main {
task {
kotlinOption.jvmTarget = JavaVersion.VERSION_1_8
}
dependencies {
implementation kotlin('stdlib-jdk8')
implementation kotlin('test-annotations-common')
}
}
jvm8Test {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
jsMain {
dependencies {
implementation kotlin('stdlib-js') }
}
jsTest {
dependencies {
implementation kotlin('test-js')
}
}
macosMain {
}
macosTest {
}
}
}