Hi, when I define two multiplatform projects like ...
# multiplatform
t
Hi, when I define two multiplatform projects like this:
Copy code
utils
    - common -> define Foo.class
    - jvm
    - js

app
    - common
    - server : utils-jvm -> use Foo.class
    - client : utils-js
And
app
includes
utils
as a composite build in gradle with
includeBuild
then IDEA marks any use of Foo.class in
app-server
as not found. Gradle builds everything perfectly fine, so is this a bug in IDEA?
I also found https://youtrack.jetbrains.com/issue/KT-23302. Is it the same problem?
r
have delegated run/build to gradle?
t
Yes that was already enabled
Ok I found out that this only happens if app-server also has a dependency on app-common. If you don't have this dependency, IDEA seems to find the Foo.class.
r
good to know
t
The problem seems to be introduced in the kotlin-gradle-plugin from 1.2.31 to 1.2.40
i
@trathschlag I'm not sure we support composite gradle builds with multiplatform project yet. Please report your problem to the tracker so we could investigate it.
t