From 3cc103ef7307cae02d1ee7fbf1f0fc7658d33435 Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Fri, 15 Nov 2024 16:09:18 +0900 Subject: [PATCH 1/2] Fix the version (#19) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 256e3e6..1511300 100644 --- a/pom.xml +++ b/pom.xml @@ -244,7 +244,7 @@ org.apache.maven.plugins maven-release-plugin - ${maven-source-plugin.version} + ${maven-release-plugin.version} @{project.version} From 04d601b452797499c3c5a4633cc8bd581b38ff1d Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Fri, 15 Nov 2024 17:03:21 +0900 Subject: [PATCH 2/2] Migrate repo from ossrh to central (#20) * Fix the version * Migrate ossrh to central --- .github/workflows/main.yml | 2 +- k2hash/pom.xml | 8 -------- pom.xml | 27 +++++++++------------------ 3 files changed, 10 insertions(+), 27 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4aec57c..d122452 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,7 +87,7 @@ jobs: with: # running setup-java again overwrites the settings.xml distribution: 'zulu' java-version: ${{ matrix.java }} - server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml + server-id: central # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import diff --git a/k2hash/pom.xml b/k2hash/pom.xml index 375c92c..26f6605 100644 --- a/k2hash/pom.xml +++ b/k2hash/pom.xml @@ -24,14 +24,6 @@ https://github.com/yahoojapan/k2hash_java - - - ossrh - Central Repository OSSRH - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - diff --git a/pom.xml b/pom.xml index 1511300..45ba458 100644 --- a/pom.xml +++ b/pom.xml @@ -42,14 +42,6 @@ https://github.com/yahoojapan/k2hash_java - - - ossrh - Central Repository OSSRH - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - - @@ -99,6 +91,7 @@ checkstyle.xml 1.7.0 3.1.1 + 0.6.0 @@ -229,17 +222,15 @@ - - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-maven-plugin.version} - true - - ossrh - https://s01.oss.sonatype.org - true - + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} + true + + central + true + org.apache.maven.plugins