https://kotlinlang.org logo
#announcements
Title
# announcements
n

Nicholas Bilyk

07/08/2019, 3:03 PM
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
Copy code
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?
d

Dominaezzz

07/08/2019, 4:12 PM
It's known to not work in the IDE
n

Nicholas Bilyk

07/09/2019, 2:54 PM
I've gotten it to work if it's a jvm-only app and a multi-platform library, but multi-platform app it doesn't. I feel like there's got to be a way to at least get the multi-platform app to work with composite with at least the jvm backend and then not substitute dependencies for the others...
a

Alexey Belkov [JB]

07/10/2019, 9:34 AM
FYI #gradle or #multiplatform is a better channel for such questions.
3 Views