test_publish_kmp

Facilitates publishing a library to Maven Central, addressing local publication issues with signing configuration, and leveraging the gradle-maven-publish-plugin for streamlined deployment and verification.

Android
JVM
iOS
GitHub stars0
Dependents0
Creation dateover 1 year ago

Last activityover 1 year ago
Latest release1.0.0 (over 1 year ago)

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

Android
JVM
iOS
GitHub stars0
Dependents0
Creation dateover 1 year ago

Last activityover 1 year ago
Latest release1.0.0 (over 1 year ago)

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