From ca80abd5eec69e6e8e5fe6b371d30d25e0db41b2 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Mon, 7 Jul 2025 12:58:57 +0200 Subject: [PATCH 1/2] Migrate publishing to Maven Central Portal --- .github/workflows/snapshot.yml | 2 +- .github/workflows/version-and-release.yml | 2 +- pom.xml | 33 ++++++++++++++--------- 3 files changed, 23 insertions(+), 14 deletions(-) diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 1436906bad..3d437aa002 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -21,7 +21,7 @@ jobs: with: java-version: '8' distribution: 'temurin' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD - name: Cache dependencies diff --git a/.github/workflows/version-and-release.yml b/.github/workflows/version-and-release.yml index f624dc05fd..415c8e0805 100644 --- a/.github/workflows/version-and-release.yml +++ b/.github/workflows/version-and-release.yml @@ -23,7 +23,7 @@ jobs: with: java-version: '8' distribution: 'temurin' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD diff --git a/pom.xml b/pom.xml index 6241e5daf1..f9e85d0888 100644 --- a/pom.xml +++ b/pom.xml @@ -44,6 +44,15 @@ jedis-3.4.1 + + + redis + Redis Ltd. + Redis + https://redis.io + + + github redis.clients.jedis @@ -213,14 +222,14 @@ - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + central + https://central.sonatype.com/api/v1/publisher/deployments/upload/ + + central + https://central.sonatype.com/repository/maven-snapshots/ + @@ -310,14 +319,14 @@ 3.1.1 - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.8.0 true - ossrh - https://oss.sonatype.org/ - true + central + true + published From 4aac37c98c563befedccf3a42e21b436c854bff8 Mon Sep 17 00:00:00 2001 From: Igor Malinovskiy Date: Mon, 7 Jul 2025 19:31:57 +0200 Subject: [PATCH 2/2] Clean up scm section in pon.xml --- pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index f9e85d0888..afc2fa9f74 100644 --- a/pom.xml +++ b/pom.xml @@ -40,8 +40,7 @@ scm:git:git@github.com:redis/jedis.git scm:git:git@github.com:redis/jedis.git - scm:git:git@github.com:redis/jedis.git - jedis-3.4.1 + https://github.com/redis/jedis/tree/master