Hi, im trying to configure the following mutliplat...
# multiplatform
f
Hi, im trying to configure the following mutliplatform setup: • root Gradle project ◦ common ▪︎ common, jvm, js ◦ server ▪︎ jvm ◦ client ▪︎ js Common has a lot of dependencies declared for each of other projects, but after IntelliJ Gradle rescan only the client project has access to common and its dependencies. The jvm server resolves nothing from common, nor from its dependencies. In both server and client i have
Copy code
val commonMain by getting {
            dependencies {
                implementation(project(":common"))
            }
        }
z
Are the dependencies you've added in the common module declared with
api
or
implementation
? If you want them to be exposed to consumers of the common module, you need to use
api
.
f
All declared with api and they are discoverable in client, only the server canbt resolve them