-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
96 lines (84 loc) · 2.57 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
96 lines (84 loc) · 2.57 KB
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
plugins {
kotlin("multiplatform") version "2.1.0"
kotlin("plugin.serialization") version "2.1.0"
}
group = "org.litlfred.fmlrunner"
version = "0.1.0"
repositories {
mavenCentral()
// JitPack repository for kotlin-fhirpath dependency
// Note: JitPack access still blocked by network firewall
// maven("https://jitpack.io")
}
// Configure JVM toolchain at the project level
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
kotlin {
jvm {
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
js(IR) {
browser {
testTask {
useKarma {
useChromeHeadless()
webpackConfig.cssSupport {
enabled.set(true)
}
}
}
}
nodejs {
testTask {
useMocha {
timeout = "10s"
}
}
}
binaries.executable()
useCommonJs() // Use CommonJS for better Node.js compatibility
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
// kotlin-fhirpath dependency from https://github.com/jingtang10/kotlin-fhirpath
// Note: JitPack access still blocked - will integrate when network allows
// implementation("com.github.jingtang10:kotlin-fhirpath:0.1.0")
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
// kotlin-fhirpath provides JVM implementation
}
}
val jvmTest by getting {
dependencies {
implementation("org.junit.jupiter:junit-jupiter:5.9.3")
}
}
val jsMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
// kotlin-fhirpath provides JS implementation
}
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}