jdemeulenaere
12/24/2019, 3:39 PMclient/ <= Kotlin/JS subproject
|- build.gradle.kts <= What should I put here to allow client to depend on :shared ?
server/ <= Kotlin/JVM subproject
|- build.gradle.kts <= What should I put here to allow server to depend on :shared ?
shared/ <= Kotlin/Multiplatform subproject
|- build.gradle.kts
I tried to put this but it didn't work:
dependencies {
implementation(project(":shared"))
}egorand
12/24/2019, 3:55 PMjdemeulenaere
12/24/2019, 4:11 PMCould not determine the dependencies of task ':client:packageJson'.
> project ':shared' is not configured for JS usageegorand
12/24/2019, 4:18 PMserver project? I.e. is it a JS-only issue?jdemeulenaere
12/24/2019, 4:25 PMserver project (I didn't actually try because it was not working with JS, so thanks for the question 🙂 )egorand
12/24/2019, 4:33 PMproject() dependency - this might work. If not, I’d file a Youtrack issue.egorand
12/24/2019, 4:34 PMenableFeaturePreview("GRADLE_METADATA") in your settings.gradle.russhwolf
12/24/2019, 4:37 PMshared module
kotlin {
...
js {
browser() // and/or nodejs()
}
}jdemeulenaere
12/24/2019, 4:48 PMjs {} block but not the browser() line. Thanks 🙂egorand
12/24/2019, 5:25 PMIlya Goncharov [JB]
12/24/2019, 5:36 PM