Skip to content

Commit 39f235f

Browse files
cleanup: Refactor Gradle Kotlin DSL syntax in build script
1 parent 46da7ad commit 39f235f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

heartbeat_monitor/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ kotlin {
1515
browser()
1616
binaries.executable()
1717
compilerOptions {
18-
moduleKind.set(JsModuleKind.MODULE_ES)
19-
moduleName.set("heartbeat_monitor")
18+
moduleKind = JsModuleKind.MODULE_ES
19+
moduleName = "heartbeat_monitor"
2020
sourceMapEmbedSources = JsSourceMapEmbedMode.SOURCE_MAP_SOURCE_CONTENT_ALWAYS
2121
freeCompilerArgs.add("-Xcontext-parameters")
2222
}
2323
}
2424

2525
sourceSets {
26-
val commonMain by getting {
26+
commonMain {
2727
dependencies {
2828
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
2929
implementation("mirrg.kotlin:mirrg.kotlin.helium-kotlin-2-2:4.2.0")
3030
}
3131
}
32-
val jsMain by getting {
32+
jsMain {
3333
resources.srcDir("src/main/resources")
3434
resources.exclude("**/*.pdn")
3535
dependencies {

0 commit comments

Comments
 (0)