-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathbuild.gradle
44 lines (40 loc) · 975 Bytes
/
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
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
import org.jetbrains.kotlin.gradle.targets.jvm.KotlinJvmTarget
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
apply plugin: 'org.jetbrains.kotlin.multiplatform'
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
apply from: "$rootDir/addAllTargets.gradle"
kotlin {
sourceSets {
commonMain {
dependencies {
implementation projects.mosaicRuntime
}
}
commonTest {
dependencies {
implementation projects.mosaicTesting
implementation libs.kotlin.test
implementation libs.kotlinx.coroutines.test
implementation libs.assertk
}
}
}
jvm {
binaries {
executable {
mainClass = 'example.Main'
}
}
}
targets.withType(KotlinNativeTarget).configureEach { target ->
target.binaries.executable {
entryPoint = 'example.main'
if (buildType == NativeBuildType.DEBUG) {
linkTaskProvider.configure {
enabled = false
}
}
}
}
}