- https://central.sonatype.org/register/central-portal/
- https://central.sonatype.org/publish/publish-guide/
git clone https://github.com/com-github-javabdd/com.github.javabdd.git javabdd.git
- cd
javabdd.git
- Edit
.git/config
, adding:By fulling in your[user] name = FirstName LastName email = EmailAddress
FirstName
andLastName
and your GitHubEmailAddress
. - Create a GitHub personal access token, at https://github.com/settings/tokens. Use it as a password. It expires after some time, so create a new one if needed.
- Create a Sonatype personal access token, at https://oss.sonatype.org. Log in and go to your profile. Instead of Summary, select User Token. Create a user token.
- Create a local GPG key.
- Configure "ossrh" server credentials in Maven settings.
Create/edit
$HOME/.m2/settings.xml
, to have the following settings:Fill in your<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.passphrase>GPG_KEY</gpg.passphrase> </properties> </profile> </profiles> <servers> <server> <id>ossrh</id> <username>SONATYPE_USERNAME</username> <password>SONATYPE_TOKEN</password> </server> </servers> </settings>
GPG_KEY
,SONATYPE_USERNAME
andSONATYPE_TOKEN
.
- Make sure
CHANGES.md
has an entry for the new release. export JAVA_HOME=SOME_PATH
withSOME_PATH
the path to the root folder of a JDK 17 installation.export PATH=SOME_PATH/bin:SOME_PATH2/bin:$PATH
withSOME_PATH
the path to the root folder of your GPG installation, andSOME_PATH2
the path to the root folder of a JDK 17 installation../release-prepare
from your clone of the JavaBDD repo. When asked for a release version, type something like9.0.0
and press Enter. When asked for an SCM tag/label, press Enter. When asked for the new development version, press Enter../release-perform
from the same directoy.- If all was successfull, check the new commits that are made, and push them using
git push
. - Also push the new tag using
git push --tags
. - Manually create a new GitHub release, basing it on the new tag, setting the version as release title, and copying the changelog entry from
CHANGES.md
as the release notes text. - Check that the new release is available at https://central.sonatype.com/artifact/com.github.com-github-javabdd/com.github.javabdd/versions.
- Check that the new release can be found at https://oss.sonatype.org/#nexus-search;quick~javabdd.