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: