ribesg
08/29/2019, 1:11 PMimplementation(project(":path:to:mpp-module"))
WARNING: Ignoring dependency of module 'mpp-module' on module 'jvm-module'. Java modules cannot depend on Android modules
gildor
08/29/2019, 1:13 PMribesg
08/29/2019, 1:14 PMgildor
08/29/2019, 1:14 PMgildor
08/29/2019, 1:14 PMribesg
08/29/2019, 1:15 PMribesg
08/29/2019, 1:15 PMgildor
08/29/2019, 1:15 PMgildor
08/29/2019, 1:15 PMribesg
08/29/2019, 1:23 PMgildor
08/29/2019, 3:03 PMribesg
08/30/2019, 8:20 AMribesg
09/02/2019, 10:03 AMgildor
09/02/2019, 10:05 AMlouiscad
09/02/2019, 10:07 AMmpp-module
target Android?ribesg
09/02/2019, 10:07 AMribesg
09/02/2019, 10:08 AMribesg
09/02/2019, 10:08 AMlouiscad
09/02/2019, 10:08 AMjvm
target if possible, or add an android target to your module having the dependencyribesg
09/02/2019, 10:08 AMribesg
09/02/2019, 10:09 AMkotlin-jvm
module depending on a kotlin-multiplatform
module having both android
and jvm
targets is throwing this “warning”louiscad
09/02/2019, 10:09 AMplugins { … }
snippet from your consuming module?ribesg
09/02/2019, 10:09 AMplugins {
kotlin
serialization
}
ribesg
09/02/2019, 10:10 AMinline val PluginDependenciesSpec.serialization: PluginDependencySpec
get() = id("kotlinx-serialization").version(Versions.kotlin)
louiscad
09/02/2019, 10:10 AMplugins {
kotlin("multiplatform")
id("com.android.library")
}
ribesg
09/02/2019, 10:10 AMribesg
09/02/2019, 10:11 AMribesg
09/02/2019, 10:14 AMlouiscad
09/02/2019, 10:15 AMmpp-module
as a library to mavenLocal (or another repository if you want), and depend on that maven dependency from your JVM-backend only module.
2. Remove the dependency on Android from your mpp-module
, and use the Android APIs in another module depending on it.ribesg
09/02/2019, 10:18 AMribesg
09/02/2019, 10:23 AMlouiscad
09/02/2019, 10:27 AMmaven-publish
plugin and setting up the artifact names if you want. I have experience and examples customizing or disabling unneeded publications, I can help if you need it.ribesg
09/02/2019, 10:28 AMmaven-publish
plugin applied on the entire thing.ribesg
09/02/2019, 10:28 AMribesg
09/02/2019, 10:28 AMlouiscad
09/02/2019, 10:29 AMribesg
09/02/2019, 10:33 AM.gradle
build
.idea
*.iml
files and reimporting the project, and IntelliJ now works as expected in all files of the project.
I’ll just have to do that every time I add a new module to the project I guess, it’s good enough. Adding that to the issue.