https://kotlinlang.org logo
Title
n

Nicholas Bilyk

07/08/2019, 3:52 PM
Sorry for the re-post, just learned of this channel 🙂 Hi Gradle experts. I'm pretty new to Gradle, and I'm having trouble figuring out how to get a Kotlin multi-platform multi-project build set up as a composite dependency. I'm using includeBuild to pull in the mpp utility project
includeBuild("../acornui") {
	dependencySubstitution {
		substitute(module("com.acornui:acornui-utils-metadata")).with(project(":acornui-utils"))
		substitute(module("com.acornui:acornui-utils-jvm")).with(project(":acornui-utils"))
		substitute(module("com.acornui:acornui-utils-js")).with(project(":acornui-utils"))
        }
}
This actually works as far as building is concerned, but the IDE doesn't accept the substitution. Any suggestions for where I can go from here?
Update: If the app project is Kotlin JVM, composite builds work just fine (no substitutions necessary), even if the library is multi-platform. If the app project is Kotlin Multi-platform, IDEA doesn't give me intellisense.