This project publishes through Sonatype Central Portal.
- Create or sign in to a Sonatype Central Portal account: https://central.sonatype.com/
- Verify ownership of the namespace
com.github.l42111996. - Generate a Central Portal user token.
- Install GPG locally and create or import a signing key.
- Add the Central token to
~/.m2/settings.xml:
<settings>
<servers>
<server>
<id>central</id>
<username>YOUR_CENTRAL_TOKEN_USERNAME</username>
<password>YOUR_CENTRAL_TOKEN_PASSWORD</password>
</server>
</servers>
</settings>mvn clean verifySet the project version in the root pom.xml and all child module parent versions to the same release version.
mvn -Prelease clean deployThe release profile creates source jars, javadoc jars, GPG signatures, and uploads the deployment bundle to Central Portal. autoPublish is disabled, so review and publish the deployment in the Central Portal UI.
The reactor currently includes:
kcp-feckcp-basekcp-examplekcp-lockStepSynchronization
If only the library artifacts should be published, remove example/demo modules from the root pom.xml release reactor before deploying.
If Central Portal reports Namespace 'com.github.l42111996' is not allowed, the token's account has not been granted publishing rights for that namespace. Add and verify the namespace in Central Portal, then run the release command again.