We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey, I created a simple Multiplatform project, using this UUID library in commonMain
// gradle.build.kts sourceSets { commonMain { dependencies { implementation("org.jetbrains.kotlinx.experimental:kotlinx-uuid-core:0.0.1") } }
Branch: https://github.com/hfhbd/ComposeTodo/tree/simple Commit: hfhbd/ComposeTodo@e4c5395 and the CI
However, in each target, only this UUID library is not found by Gradle. You still need to include the explicit library for each source set.
sourceSets { commonMain { dependencies { implementation("org.jetbrains.kotlinx.experimental:kotlinx-uuid-core:0.0.1") } } val jsMain by getting { dependencies { implementation("org.jetbrains.kotlinx.experimental:kotlinx-uuid-core-js:0.0.1") } } val iosMain by getting { dependencies { } } val iosArm64Main by getting { dependencies { implementation("org.jetbrains.kotlinx.experimental:kotlinx-uuid-core-iosarm64:0.0.1") } } val iosX64Main by getting { dependencies { implementation("org.jetbrains.kotlinx.experimental:kotlinx-uuid-core-iosx64:0.0.1") } } val jvmMain by getting { dependencies { implementation("org.jetbrains.kotlinx.experimental:kotlinx-uuid-core-jvm:0.0.1") } } }
Workaround: hfhbd/ComposeTodo@e40928e and the CI
@cy6erGn0m Do you know why this problem exists? Is something of the published library still missing?
The text was updated successfully, but these errors were encountered:
Looks like somethig is wrong with module metadata or pom files that should have some placeholder.
Sorry, something went wrong.
The following fixes your issue. Gradle doesn't want to pick up metadata for some reason:
repositories { maven { setUrl("https://dl.bintray.com/cy6ergn0m/uuid") metadataSources { gradleMetadata() } // this does the trick! } }
From this https://docs.gradle.org/current/userguide/publishing_gradle_module_metadata.html#sub:interactions-other-build-tools
the pom.xml or ivy.xml file will contain a marker comment which tells Gradle that Gradle Module Metadata exists for this module
pom.xml
ivy.xml
So I've lost the marker comment for some reason
Fix publication to not overwrite metadata marker (#10)
bea2f77
The following fixes your issue. Gradle doesn't want to pick up metadata for some reason: repositories { maven { setUrl("https://dl.bintray.com/cy6ergn0m/uuid") metadataSources { gradleMetadata() } // this does the trick! } }
Thank you! This is working.
Fixed in 0.0.2
cy6erGn0m
No branches or pull requests
Hey,
I created a simple Multiplatform project, using this UUID library in commonMain
Branch: https://github.com/hfhbd/ComposeTodo/tree/simple
Commit: hfhbd/ComposeTodo@e4c5395 and the CI
However, in each target, only this UUID library is not found by Gradle. You still need to include the explicit library for each source set.
Workaround: hfhbd/ComposeTodo@e40928e and the CI
@cy6erGn0m Do you know why this problem exists? Is something of the published library still missing?
The text was updated successfully, but these errors were encountered: