Skip to content

tcamise-gpsw/test_publish_kmp

Repository files navigation

This medium article is the starting point.

It instructs us to use the gradle-maven-publish-plugin which is additional functionality on top of the default maven-publish plugin.

We're first trying to publish locally via gradle :capitalizeLib:publishToMavenLocal but its failing due to some signing stuff:

1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':capitalizeLib:signAndroidDebugPublication'.
> Cannot perform signing task ':capitalizeLib:signAndroidDebugPublication' because it has no configured signatory

Let's trying following these steps.

I've registered and verified Sonatype to my Github Ac count. I've created and distributed a GPG key (via WSL). These credentials are stored in my global (per-user) gradle.properties

Publishing to local Maven and consuming via ComposeApp is working.

Next...publish to Maven Central via gradle :capitalizeLib:publishToMavenCentral

Once it is validated by Sonatype, click Publish. It's available here

About

Test Publishing a Simple KMP Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published