I have a multi-module project that I'm upgrading t...
# gradle
s
I have a multi-module project that I'm upgrading to 1.3. I have a SpringBoot java project that defines a dependency on a JS project that is built with the kotlin front-end project. Everything was working really well previously, but after upgrade, I get an error when I try to include the dependency in my build file (
compile(project(":client"))
). The error is
Required org.gradle.usage 'java-runtime' and found incompatible value 'kotlin-api
Yes, this is a little unusual, but the client JS project produces a JAR that includes the JS. Then, I reference the js file from the classpath in the code, and it's been a really nice setup.
I can make it work by manually adding resources directories and such, but this means I'm not taking advantage of IntelliJ's ability to see the classpath during run. This is important because I'm currently able to build the JS and have it immediately available, but this would become a multi-step process if the dependencies don't work.
The other part of the error message is
Required org.jetbrains.kotlin.platform.type 'jvm' and found incompatible value 'js'
Which makes sense to a point, but since I'm building a JAR, I don't see why I wouldn't be able to include that dependency.
a