konform-kt / konform

Portable validations for Kotlin
https://www.konform.io
MIT License
651 stars 39 forks source link

Metadata errors when using in a multi-platform project commonMain #22

Closed adamsar closed 3 years ago

adamsar commented 3 years ago

When including 0.2.0 in a multiplatform project, it is unusable in the commonMain source set due to some sort of metadata publishing error.

I have an example repo set up to replicate this error here: https://github.com/adamsar/kotlin-dependency-bug

nlochschmidt commented 3 years ago

Thanks for the report. Indeed it looks like the way multiplatform libraries need to be published has changed. I'll see what I can do on short notice.

nlochschmidt commented 3 years ago

Multiplatform is still in alpha state and looking at other libs like kotlinx.serialization, it seems to be a bit tricky to get the publishing right. I have published 0.3.0-RC1 to bintray and will have to cut a new release. Among other things, this also moves from Kotlin 1.3 to 1.4.

adamsar commented 3 years ago

Yeah, with mutliplatform in alpha, I decided to move away from it in any production/consumer facing project, so time is not particularly urgent on this. When it gets published I will definitely takeit for a spin though.

For the record I am using this to bridge form/json validation from browser to server, and will probably make an adapter library for ktor or http4k.

set321go commented 3 years ago

i've been using 0.3.0-RC1 on my multiplatform project for a couple of weeks now no issues as far as i've noticed

nlochschmidt commented 3 years ago

After getting some help with switching from Bintray to MavenCentral, 0.3.0 has been released and should work as expected. Please let me know if you find issues with using konform in a multiplatform project.