|
4 | 4 |
|
5 | 5 | 1. Go to the "[Publish Artifacts](https://github.com/naver/spring-jdbc-plus/actions/workflows/publish.yml)" action.
|
6 | 6 | 2. Enter the tag, branch, or commit ID, and run the action.
|
7 |
| -3. You can verify the success of the deployment on [oss.sonatype.org](https://oss.sonatype.org/#stagingRepositories). |
| 7 | +3. You can verify the success of the deployment on [central.sonatype.org](https://central.sonatype.com/publishing/deployments). |
8 | 8 |
|
9 | 9 | ### Using a Local Machine
|
10 | 10 |
|
11 | 11 | 1. Set the following environment variables before publishing:
|
12 |
| - - `ORG_GRADLE_PROJECT_signingKey`: Enter your personal GPG private key. Ensure that line breaks are removed, as shown [here](https://github.com/vanniktech/gradle-maven-publish-plugin/pull/201#discussion_r584270633). |
13 |
| - - `ORG_GRADLE_PROJECT_signingPassword`: Enter the password associated with your GPG private key. |
14 |
| - - `OSSRH_USERNAME`: Enter your OSSRH username using the generated [Access User Token](https://oss.sonatype.org/#profile;User%20Token). |
15 |
| - - `OSSRH_PASSWORD`: Enter your OSSRH password using the generated [Access User Token](https://oss.sonatype.org/#profile;User%20Token). |
16 |
| -2. Run `./gradlew clean publish` to complete the publishing process. |
| 12 | + - `JRELEASER_MAVENCENTRAL_USERNAME`: Your Sonatype username token. using the generated [Access User Token](https://central.sonatype.com/account). |
| 13 | + - `JRELEASER_MAVENCENTRAL_PASSWORD`: Your Sonatype password token. using the generated [Access User Token](https://central.sonatype.com/account). |
| 14 | + - `JRELEASER_NEXUS2_USERNAME` (for snapshots): same as JRELEASER_MAVENCENTRAL_USERNAME |
| 15 | + - `JRELEASER_NEXUS2_PASSWORD` (for snapshots): same as JRELEASER_MAVENCENTRAL_PASSWORD |
| 16 | + - `JRELEASER_GPG_PASSPHRASE`: Your GPG key passphrase. |
| 17 | + - `JRELEASER_GPG_PUBLIC_KEY`: Your GPG public key, Base64 encoded. (`gpg --export ${your_key_id} | base64`) |
| 18 | + - `JRELEASER_GPG_SECRET_KEY`: Your GPG secret key, Base64 encoded. (`gpg --export-secret-keys ${your_key_id} | base64`) |
| 19 | + - `JRELEASER_GITHUB_TOKEN`: Set this to an empty string. It's not used, but the variable is required by JReleaser. |
| 20 | +2. Run `./gradlew jreleaserConfig` to verify your configuration. |
| 21 | +3. Run `./gradlew clean build publish` to build the artifact locally. |
| 22 | +4. Run `./gradlew jreleaserDeploy` to publish and release your artifact to Maven Central |
0 commit comments