Kotlin / kotlinx.serialization

Kotlin multiplatform / multi-format serialization
Apache License 2.0
5.42k stars 620 forks source link

Gradle install fails #1704

Closed Earthcomputer closed 3 years ago

Earthcomputer commented 3 years ago

Describe the bug I am trying to publish a local version of kotlinx.serialization using ./gradlew build install, but it is failing with the following error:

* What went wrong:
Execution failed for task ':kotlinx-serialization-core:install'.
> Could not publish configuration 'archives'
   > A POM cannot have multiple artifacts with the same type and classifier. Already have MavenArtifact kotlinx-serialization-core:klib:klib:null, trying to add MavenArtifact kotlinx-serialization-core:klib:klib:null.

Nothing I have tried could get it to build. Is there something I'm doing wrong, or is it something with the buildscript?

To Reproduce Clone a fresh copy of this repo and run ./gradlew build install.

Expected behavior Build successful.

Environment

sandwwraith commented 3 years ago

Try ./gradlew publishToMavenLocal.

Earthcomputer commented 3 years ago

Hmm, that seems to miss the platform-specific artifacts such as kotlinx-serialization-cbor-jvm

Never mind I'm blind, worked like a charm, thanks!