Skip to content

Commit

Permalink
adding sourcesets so intellij completion works better
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfmurdock committed Jul 9, 2023
1 parent 0434280 commit 89b2352
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 9 additions & 0 deletions client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 1 addition & 4 deletions client/components/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}

Expand Down

0 comments on commit 89b2352

Please sign in to comment.