(crossposting from <#C0B8H786P|intellij> where I d...
# multiplatform
c
(crossposting from #intellij where I didn't get an answer...) I have a multimodule gradle project, and among the modules I have: + a multiplatform application module, MAPP, with common/jvm/js targets + a java library module, JLIB MAPP is supposed to depend on JLIB, but whenever I add the JLIB dependency to the MAPP build script, 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.