Howdy! :wave: I'm building a new KMP library and ...
# kotlin-toolchain
s
Howdy! 👋 I'm building a new KMP library and am investigating using kotlin-toolchain rather than a stack of gradle scripts! So far my only blocker is publishing, via Maven or some other blessed method. This page from May claims that publishing is coming soon, have there been any updates since then?
j
Hi! Happy to hear that you're giving the Kotlin Toolchain a try! Good news for you, KMP publishing is almost complete in the
main
branch. There are couple things to iron out, but if everything goes well, it should make it to the next Kotlin Toolchain release (which should be some time before the end of this month).
🙌 2
s
I'm in the same boat, looking forward to when it's available! Is there a YouTrack or something I can follow to try once it's in
main
? I'm already on the
--dev
release channel.
s
Awesome, thank you for the update! This lines up with my own timelines, so I'll stick with kotlin toolchain!
a
@sindrenm could you please try how it works with the latest dev:
0.12.0-dev-4222
?
s
Thanks for all the help! I've been guiding my agent through a full kotlin-toolchain migration and its highlighted a handful of bugs. I'm creating tickets and repros for each of them. Overall, it's been very smooth! The new modules and yaml descriptions are so much cleaner than the pile of gradle scripts, and it's much easier to follow the structure of my KMP library
💜 4
j
Thanks a lot @Seri for all the reports kodee loving
s
Thank y'all for tackling them so quickly! kodee happy
rockets2 2
j
Kudos to @alexey.barsov for that 💪🏼
s
@alexey.barsov @joffrey Thanks for the great work, honestly the smoothest publishing experience I’ve seen for any JVM build system. I was able to publish JVM libs without any issues. But for a KMP library (which targets everything except wasi), I’m getting the following error. Any idea what’s going on? I checked the Central credentials, GPG signature, etc, and everything looks correct
Copy code
INFO  Signing artifact 'kotlin-vipaccess.klib'…
INFO  Signing artifact 'kotlin-vipaccess-linuxx64-sources.jar'…
INFO  Signing artifact 'kotlin-vipaccess-linuxx64-javadoc.jar'…
INFO  Signing artifact 'kotlin-vipaccess.klib'…
INFO  Signing artifact 'kotlin-vipaccess-linuxarm64-sources.jar'…
INFO  Signing artifact 'kotlin-vipaccess-linuxarm64-javadoc.jar'…
INFO  Signing artifact 'kotlin-vipaccess.klib'…
INFO  Signing artifact 'kotlin-vipaccess-macosarm64-sources.jar'…
INFO  Signing artifact 'kotlin-vipaccess-macosarm64-javadoc.jar'…
INFO  Signing artifact 'kotlin-vipaccess.klib'…
INFO  Signing artifact 'kotlin-vipaccess-mingwx64-sources.jar'…
INFO  Signing artifact 'kotlin-vipaccess-mingwx64-javadoc.jar'…
INFO  Signing artifact 'kotlin-vipaccess-metadata-0.2.0.jar'…
INFO  Signing artifact 'kotlin-vipaccess-kotlin-0.2.0-sources.jar'…
INFO  Signing artifact 'kotlin-vipaccess-jvm-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-js-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-wasmjs-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-linuxx64-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-linuxarm64-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-macosarm64-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-mingwx64-0.2.0.module'…
INFO  Signing artifact 'kotlin-vipaccess-0.2.0.module'…
INFO  Uploading Maven Central bundle for module `kotlin-vipaccess`…
INFO  Maven Central bundle uploaded successfully for module `kotlin-vipaccess` as deployment `06aba9bd-413d-4ace-8582-c7e631d81dae`
INFO  Validating deployment `06aba9bd-413d-4ace-8582-c7e631d81dae`…

ERROR: Task ':kotlin-vipaccess:publishToMavenCentral' failed: Maven Central publication failed for module kotlin-vipaccess (deployment ID: '06aba9bd-413d-4ace-8582-c7e631d81dae'):
  pkg:maven/dev.suresh.vipaccess/kotlin-vipaccess-mingwx64@0.2.0?type=klib:
   - Invalid sha1 checksum for file: kotlin-vipaccess-mingwx64-0.2.0.klib
   - Invalid md5 checksum for file: kotlin-vipaccess-mingwx64-0.2.0.klib
  pkg:maven/dev.suresh.vipaccess/kotlin-vipaccess-linuxx64@0.2.0?type=klib:
   - Invalid md5 checksum for file: kotlin-vipaccess-linuxx64-0.2.0.klib
   - Invalid sha1 checksum for file: kotlin-vipaccess-linuxx64-0.2.0.klib
   - Invalid signature for file: kotlin-vipaccess-linuxx64-0.2.0.klib.asc - The signature was not valid for the corresponding file's contents.
  pkg:maven/dev.suresh.vipaccess/kotlin-vipaccess-wasmjs@0.2.0?type=klib:
   - Invalid signature for file: kotlin-vipaccess-wasmjs-0.2.0.klib.asc - The signature was not valid for the corresponding file's contents.
  pkg:maven/dev.suresh.vipaccess/kotlin-vipaccess-linuxarm64@0.2.0?type=klib:
   - Invalid md5 checksum for file: kotlin-vipaccess-linuxarm64-0.2.0.klib
   - Invalid sha1 checksum for file: kotlin-vipaccess-linuxarm64-0.2.0.klib
   - Invalid signature for file: kotlin-vipaccess-linuxarm64-0.2.0.klib.asc - The signature was not valid for the corresponding file's contents.
  pkg:maven/dev.suresh.vipaccess/kotlin-vipaccess-macosarm64@0.2.0?type=klib:
   - Invalid sha1 checksum for file: kotlin-vipaccess-macosarm64-0.2.0.klib
   - Invalid md5 checksum for file: kotlin-vipaccess-macosarm64-0.2.0.klib
   - Invalid signature for file: kotlin-vipaccess-macosarm64-0.2.0.klib.asc - The signature was not valid for the corresponding file's contents.
  pkg:maven/dev.suresh.vipaccess/kotlin-vipaccess-js@0.2.0?type=klib:
   - Invalid sha1 checksum for file: kotlin-vipaccess-js-0.2.0.klib
   - Invalid md5 checksum for file: kotlin-vipaccess-js-0.2.0.klib
   - Invalid signature for file: kotlin-vipaccess-js-0.2.0.klib.asc - The signature was not valid for the corresponding file's contents.
👀 1
✅ 1
a
@suresh I have found the root cause of the issue and fixing it, thanks for the timely feedback youtrack.jetbrains.com/issue/KTC-5680/Invalid-checksums-and-signatures-are-calculated-for-KLib-artifacts
💪🏼 1
thank you color 1
💪 1