I have a multimodule gradle project, with : + a m...
# intellij
c
I have a multimodule gradle project, with : + a multiplatform application module, MAPP, with common/jvm/js targets + a multiplatform library module, MLIB, with common/jvm/js targets + a java library module, JLIB MAPP is supposed to depend on MLIB and JLIB, but whenever I add the JLIB dependency to MAPP, the MAPP source roots get broken at sync time, as if IntellijIdea was trying to find standard [main] and [test] source roots instead of multiplatform ones. If I comment the dependency to JLIB, after deleting the
.idea
folder, the sync succeeds and everything goes back to normal, with source and test roots properly detected in commonMain, jvmMain, jsMain and the same for test. Somehow, IntellijIdea mixes gradle build models between multiplatform and java plugins from different modules, and I don't have any clue why it happens. Versions: + IntelliJ IDEA 2021.3.3 (Ultimate Edition) Build #IU-213.7172.25, built on March 15, 2022 + Kotlin plugin 213-1.6.21-release-334-IJ6777.52 + gradle 7.1 or 7.4.2
Fixed by 1.6.21.