Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 7 additions & 18 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SPDX-License-Identifier: LGPL-2.0-or-later

<groupId>com.github.com-github-javabdd</groupId>
<artifactId>com.github.javabdd</artifactId>
<version>9.0.1-SNAPSHOT</version>
<version>10.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>JavaBDD</name>
Expand Down Expand Up @@ -140,14 +140,14 @@ SPDX-License-Identifier: LGPL-2.0-or-later
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>published</waitUntil>
</configuration>
</plugin>

Expand Down Expand Up @@ -208,17 +208,6 @@ SPDX-License-Identifier: LGPL-2.0-or-later
</plugins>
</build>

<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<scm>
<connection>scm:git:git://github.com/dexecutor/dependent-tasks-executor.git</connection>
<developerConnection>scm:git:git@github.com:dexecutor/dexecutor.git</developerConnection>
Expand Down
32 changes: 16 additions & 16 deletions release-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## General information for publishing to Maven Central

* https://central.sonatype.org/register/central-portal/
* https://central.sonatype.org/publish/publish-guide/
* https://central.sonatype.org/publish/publish-portal-guide/
* https://central.sonatype.org/publish/publish-portal-maven/

## Steps for (mostly) one-time setup

Expand All @@ -15,45 +15,45 @@
name = FirstName LastName
email = EmailAddress
```
By fulling in your `FirstName` and `LastName` and your GitHub `EmailAddress`.
By filling in your `FirstName` and `LastName` and your GitHub `EmailAddress`.
* 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 Sonatype publishing token, at https://central.sonatype.com/account.
Log in and go to https://central.sonatype.com/account.
Click *Generate User Token*.
Follow the steps, and note the configuration snippet that is generated, which is to be used in a later step.
* Create a local GPG key.
* Configure "ossrh" server credentials in Maven settings.
* Configure GPG key and "central" server credentials in Maven settings.
Create/edit `$HOME/.m2/settings.xml`, to have the following settings:
```xml
<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>
<id>central</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<gpg.passphrase>GPG_KEY</gpg.passphrase>
<gpg.passphrase>GPG_KEY_PASSPHRASE</gpg.passphrase>
</properties>
</profile>
</profiles>

<servers>
<server>
<id>ossrh</id>
<username>SONATYPE_USERNAME</username>
<password>SONATYPE_TOKEN</password>
<id>central</id>
<username>SONATYPE_PUBLISHING_USERNAME</username>
<password>SONATYPE_PUBLISHING_TOKEN</password>
</server>
</servers>
</settings>
```
Fill in your `GPG_KEY`, `SONATYPE_USERNAME` and `SONATYPE_TOKEN`.
Fill in your `GPG_KEY_PASSPHRASE`, `SONATYPE_PUBLISHING_USERNAME` and `SONATYPE_PUBLISHING_TOKEN`.

## Steps for each release

Expand Down