From acad8d2243fc5b0d29d747bbe81750a5b1d9de78 Mon Sep 17 00:00:00 2001 From: Konstantin Korotkov Date: Mon, 14 Jul 2025 18:32:49 +0200 Subject: [PATCH] Update to Sonatype Central release flow --- .github/workflows/netlicesning-client-ci.yml | 2 +- pom.xml | 69 ++++++-------------- 2 files changed, 21 insertions(+), 50 deletions(-) diff --git a/.github/workflows/netlicesning-client-ci.yml b/.github/workflows/netlicesning-client-ci.yml index fd5a8cbf..169930e1 100644 --- a/.github/workflows/netlicesning-client-ci.yml +++ b/.github/workflows/netlicesning-client-ci.yml @@ -70,7 +70,7 @@ jobs: - name: Build with Maven run: | - mvn -B clean deploy \ + mvn -B clean deploy -P develop \ -Drepo.snapshots.url=${{ secrets.SNAPSHOTS_URL }} \ -Dsha1=$BRANCH_SUFFIX \ -Djava.version=${{ matrix.java-version }} diff --git a/pom.xml b/pom.xml index 7e0c33f1..5f36bfe4 100644 --- a/pom.xml +++ b/pom.xml @@ -92,7 +92,7 @@ 3.0.0 3.10.1 - 1.6.13 + 0.8.0 3.2.1 3.11.0 3.3.2 @@ -190,9 +190,9 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - ${nexus-staging-maven-plugin.version} + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} org.apache.maven.plugins @@ -473,17 +473,6 @@ - - - nlic-snapshots - ${repo.snapshots.url} - - - nlic-releases - ${repo.releases.url} - - - java17 @@ -491,6 +480,19 @@ 17 + + develop + + + nlic-snapshots + ${repo.snapshots.url} + + + nlic-releases + ${repo.releases.url} + + + release @@ -504,46 +506,15 @@ maven-javadoc-plugin - maven-gpg-plugin - - - sign-artifacts - verify - - sign - - - - - --pinentry-mode - loopback - - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin + org.sonatype.central + central-publishing-maven-plugin true - ossrh - https://oss.sonatype.org/ - false + ossrh - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - -