Closed frett closed 3 years ago
Can you show how you declared the dependency?
I'm using the new VERSION_CATALOGS
gradle feature.
libs.version.toml:
[versions]
splitties = "3.0.0-beta03"
[libraries]
splitties-bitflags = { module = "com.louiscad.splitties:splitties-bitflags", version.ref = "splitties" }
build.gradle.kts:
kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(libs.splitties.bitflags)
}
}
}
}
PR with the upgrade: https://github.com/CruGlobal/kotlin-mpp-godtools-tool-parser/pull/88
~hmm, it appears to be running fine in Github Actions, but not on my local machine. I'll do a bit of debugging on my end.~
I take that back, it's only failing for the ios target, it works for the other targets
Do you still have the issue when adding the following into your gradle.properties
file?
Documentation: https://kotlinlang.org/docs/reference/mpp-share-on-platforms.html
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
yeah, still have the same issue when setting those flags.
I created a minimal reproduction project here: https://github.com/frett/splitties-mpp-dependency-issue
when the dependency is set to 3.0.0-beta01
the build succeeds, when it's set to 3.0.0-beta03
the build fails
Thanks for the report and the reproducer, and sorry for the vacations related delay.
I'm on it, with a solution that should prevent this from happening again, no matter what subtle changes take place in the Kotlin Gradle plugin.
Fixed in 3.0.0-beta04 that I just released. Should be available on MavenCentral within half an hour.
When I update my multiplatform dependencies to use the new versions of splitties from maven central I get the following build error:
it appears that the main module found here has the following invalid relative url defined in it: