From 8e2bd6298cd61e340ae056267f4d0a5af392a7dd Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Mon, 1 May 2023 10:06:05 +0200 Subject: Use DSL sugar to access commonMain source set and avoid warnings --- sw-client/build.gradle.kts | 2 +- sw-common-model/build.gradle.kts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sw-client/build.gradle.kts b/sw-client/build.gradle.kts index 3ca5c93e..06a8729e 100644 --- a/sw-client/build.gradle.kts +++ b/sw-client/build.gradle.kts @@ -8,7 +8,7 @@ kotlin { browser() // necessary for local dependency from JS UI module } sourceSets { - val commonMain by getting { + commonMain { dependencies { api(projects.swCommonModel) api(libs.krossbow.stomp.kxserialization.json) diff --git a/sw-common-model/build.gradle.kts b/sw-common-model/build.gradle.kts index 955d0da5..a1556554 100644 --- a/sw-common-model/build.gradle.kts +++ b/sw-common-model/build.gradle.kts @@ -9,12 +9,12 @@ kotlin { browser() // necessary for local dependency from JS UI module } sourceSets { - val commonMain by getting { + commonMain { dependencies { api(libs.kotlinx.serialization.core) } } - val commonTest by getting { + commonTest { dependencies { implementation(kotlin("test")) } -- cgit