I’m working on some native platform coding. I have...
# kotlin-native
k
I’m working on some native platform coding. I have a local build of native branched at 1.1.0 release. Is there a way to config a multiplatform build to point at my local version?
s
yes. It's called a composite gradle build: https://docs.gradle.org/current/userguide/composite_builds.html
In the
settings.gradle
it ends up looking something like this:
Copy code
includeBuild('../anonymous-library') {
    dependencySubstitution {
        substitute module('org.sample:number-utils') with project(':')
    }
}
This will configure it so that when you use the maven dependency
org.sample:number-utils
, it will instead reroute to the root gradle module at the
../anonymous-library
folder
k
I’ll take a look, but I’m not sure the runtime itself resolves with gradle dep management (although it might)
org.jetbrains.kotlin.native.home=../../dist