-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
41 lines (34 loc) · 876 Bytes
/
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
import org.jetbrains.kotlin.gradle.targets.js.testing.KotlinJsTest
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeSimulatorTest
import org.jetbrains.kotlin.gradle.targets.native.tasks.KotlinNativeTest
plugins {
nodejs
`desktop-all`
`stdx-module`
`stdx-ktlint`
`stdx-publishing`
}
val testEnv = mapOf("HELLO" to "HELLO", "PREFIX_HELLO" to "HELLO")
kotlin {
sourceSets {
jsMain {
dependencies {
implementation("org.jetbrains.kotlin-wrappers:kotlin-node:18.14.6-pre.510")
}
}
}
}
tasks {
withType<Test> {
environment(testEnv)
}
withType<KotlinJsTest> {
environment = testEnv.toMutableMap()
}
withType<KotlinNativeTest> {
environment = testEnv
}
withType<KotlinNativeSimulatorTest> {
enabled = false
}
}