https://kotlinlang.org logo
Title
e

ephemient

05/11/2023, 11:28 PM
in the Java ecosystem, https://docs.gradle.org/current/userguide/resolution_strategy_tuning.html#resolution_consistency
java {
    consistentResolution {
        useCompileClasspathVersions()
    }
}
is there interest in enabling something similar for Kotlin Multiplatform?
I think this would enable similar behavior but I am not totally sure
kotlin {
    targets.all {
        compilations.all {
            runtimeDependencyConfigurationName?.let(configurations::getByName)
                ?.shouldResolveConsistentlyWith(configurations.getByName(compileDependencyConfigurationName))
            for (other in associateWith) {
                configurations.getByName(compileDependencyConfigurationName)
                    .shouldResolveConsistentlyWith(configurations.getByName(other.compileDependencyConfigurationName))
            }
        }
    }
}