From 42cec3920cff4192d3a406d7e12484a7406af7b9 Mon Sep 17 00:00:00 2001
From: Liao Xin <93535922+liewstar@users.noreply.github.com>
Date: Wed, 2 Oct 2024 16:40:20 +0800
Subject: [PATCH] feat: fix pom.xml to fix CI for publishing to
https://central.sonatype.com (#12)
---
.github/workflows/ci.yml | 4 ++--
pom.xml | 18 +++++++-----------
2 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index dc25b3d..8396661 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,5 +47,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
- OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
+ OSSRH_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }}
+ OSSRH_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }}
diff --git a/pom.xml b/pom.xml
index c71eaaf..3dbc72e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -46,12 +46,8 @@
ossrh
- https://oss.sonatype.org/content/repositories/snapshots
+ https://central.sonatype.com
-
- ossrh
- https://oss.sonatype.org/service/local/staging/deploy/maven2/
-
@@ -153,15 +149,15 @@
- org.sonatype.plugins
- nexus-staging-maven-plugin
- 1.6.7
+ org.sonatype.central
+ central-publishing-maven-plugin
+ 0.5.0
true
- ossrh
- https://oss.sonatype.org/
+ ossrh
+ true
- true
+ true