From 89b2352e40e8652f180c6ba88ff173d4b79e053a Mon Sep 17 00:00:00 2001 From: Rob Murdock Date: Sat, 8 Jul 2023 21:36:45 -0400 Subject: [PATCH] adding sourcesets so intellij completion works better --- client/build.gradle.kts | 9 +++++++++ client/components/build.gradle.kts | 5 +---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/client/build.gradle.kts b/client/build.gradle.kts index 9096853209..40798f7186 100644 --- a/client/build.gradle.kts +++ b/client/build.gradle.kts @@ -35,6 +35,15 @@ kotlin { } } +kotlin { + sourceSets.jsMain { + kotlin.srcDir("build/generated/ksp/js/jsMain/kotlin") + } + sourceSets.jsTest { + kotlin.srcDir("build/generated/ksp/js/jsTest/kotlin") + } +} + val jsRuntimeClasspath: Configuration by configurations.getting val clientConfiguration: Configuration by configurations.creating val cdnLookupConfiguration: Configuration by configurations.creating diff --git a/client/components/build.gradle.kts b/client/components/build.gradle.kts index 63d781f772..56e5b67553 100644 --- a/client/components/build.gradle.kts +++ b/client/components/build.gradle.kts @@ -19,10 +19,7 @@ kotlin { kotlin { sourceSets.jsMain { - kotlin.srcDir("build/generated/ksp/js/main/kotlin") - } - sourceSets.jsTest { - kotlin.srcDir("build/generated/ksp/js/test/kotlin") + kotlin.srcDir("build/generated/ksp/js/jsMain/kotlin") } }