Did anybody encounter problems when using the publ...
# multiplatform
m
Did anybody encounter problems when using the published repository in common code? Platform-specific published code seems to work (-jvm, -js etc) but the common module seems to be empty. Everything seems to be fine when using the code inside the project (with implementation(project(":utils")) ). I am using this build file:
1
b
Common artefact is supposed to be empty as it's only used for gradle metadata to resolve platform artefacts. What version of gradle are you using? You might need to either upgrade it or enable gradle metadata flag.
m
I tried multiple versions, currently using
distributionUrl=https\:<//services.gradle.org/distributions/gradle-7.4-bin.zip>
b
Do you have *.module files published?
m
seems so
but it seems weird it's writing 2 .pom files
b
Yeah, something is fucked up with pom generation
Is your consumer on gradle 7+?
Aha!
You're creating a publication manually. Remove that since kmp plugin configures all publications for you
That's why you end up with 2 pom
m
Yep, that seems to have solved the problem. Thank you so much! I was stuck on this for 3 days 😂