I cant get a multi-project gradle setup to work. t...
# gradle
i
I cant get a multi-project gradle setup to work. the idea is simple: • root project ◦ backend ◦ frontend where the root project is just an empty parent, the backend should target kotlin("jvm") and the frontend kotlin("js"). Now it seems the root project must specify the kotlin version, so the build.gradle.kts for that looks like this (i suppose the jvm or js there shouldn't matter?):
Copy code
plugins {
   base
   //kotlin("jvm") version "1.4.32" apply false
   kotlin("js") version "1.4.32" apply false
}
However, the frontend sub-project will fail with
Please initialize the Kotlin/JS target in 'logoleon-manager (:logoleon-manager)'. Use:
kotlin {
js {
// To build distributions and run tests for browser or Node.js use one or both of:
browser()
nodejs()
}
}
Even though it is configured exactly like that. Whats wrong? SO post: => https://stackoverflow.com/questions/67254937/gradle-multi-module-kotlin-project
t
I could not reproduce the issue with information you've provided. Could you create a repro project and share it?
👍 1
i
Thanks, my mistake - I think I figured it out. Some dependency with an incorrect version appears to have caused the error
👍 1