From cbb8640c40e4f608fcb954de62a15d5ba4209240 Mon Sep 17 00:00:00 2001 From: Phillip Ross Date: Sun, 1 Jun 2025 17:37:16 -0400 Subject: [PATCH 1/2] Build Fixes/Improvements - Update URLs to https Signed-off-by: Phillip Ross --- pom.xml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 47f49be..97f3709 100644 --- a/pom.xml +++ b/pom.xml @@ -9,11 +9,11 @@ PostGIS Java Project Aggregates java projects associated with the PostGIS project. - http://postgis.net + https://postgis.net GNU Lesser General Public License - http://www.gnu.org/licenses/lgpl-2.1.txt + https://www.gnu.org/licenses/lgpl-2.1.txt repo @@ -21,7 +21,7 @@ PostGIS Development Team - http://postgis.net + https://postgis.net Phillip Ross @@ -35,7 +35,7 @@ Hakan Tandogan hakan@gurkensalat.com - http://www.gurkensalat.com/ + https://www.gurkensalat.com/ Maven Packager @@ -43,7 +43,6 @@ Baris Ergun barisergun75@gmail.com - http://www.barisergun.com/ Maven Packager @@ -56,14 +55,14 @@ postgis-users-subscribe@lists.osgeo.org postgis-users-unsubscribe@lists.osgeo.org postgis-users@lists.osgeo.org - http://lists.osgeo.org/pipermail/postgis-users/ + https://lists.osgeo.org/pipermail/postgis-users/ Developer List postgis-devel-subscribe@lists.osgeo.org postgis-devel-unsubscribe@lists.osgeo.org postgis-devel@lists.osgeo.org - http://lists.osgeo.org/pipermail/postgis-devel/ + https://lists.osgeo.org/pipermail/postgis-devel/ @@ -88,7 +87,7 @@ local-staging-site - http://local-staging/ + https://local-staging/ From d3983e390f569c6a633c1ff26253cd35f7716ef4 Mon Sep 17 00:00:00 2001 From: Phillip Ross Date: Mon, 2 Jun 2025 09:58:03 -0400 Subject: [PATCH 2/2] Migrate from OSSRH publishing to Sonatype Central Portal publishing --- .github/settings.xml | 41 ++++++--------------------------- .github/workflows/main.yml | 6 ++--- pom.xml | 47 +++++++++++++++++++++++++------------- 3 files changed, 41 insertions(+), 53 deletions(-) diff --git a/.github/settings.xml b/.github/settings.xml index 4774930..a8bb47f 100644 --- a/.github/settings.xml +++ b/.github/settings.xml @@ -3,9 +3,9 @@ xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> - ossrh - ${env.OSSRHU} - ${env.OSSRHT} + sonatype-central-portal + ${env.SONATYPE_CENTRAL_PORTAL_REPO_USERNAME} + ${env.SONATYPE_CENTRAL_PORTAL_REPO_PASSWORD} @@ -16,44 +16,17 @@ - sonatype-snapshots + sonatype-central-snapshots - sonatype-snapshots + sonatype-central-snapshots true - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - - - - sonatype-staging - - - sonatype-staging - - true - - sonatype-staging - https://oss.sonatype.org/content/groups/staging/ - - - - - sonatype-releases - - - sonatype-releases - - true - - sonatype-releases - https://oss.sonatype.org/content/groups/public/ + sonatype-central-snapshots + https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/snapshots/ - diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e19b390..5eaf037 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: runs-on: ${{ matrix.os }} env: MAVEN_PROPS: -Djavadoc.path=`which javadoc` - PROFILES: gpg,release-sign-artifacts,sonatype-deployment,sonatype-snapshots,sonatype-staging,sonatype-releases + PROFILES: "gpg,release-sign-artifacts,sonatype-central-portal-deployment,sonatype-central-snapshots" SETTINGS: .github/settings.xml steps: @@ -82,8 +82,8 @@ jobs: - name: Maven deploy if: ${{ matrix.maven_deploy && (github.ref == 'refs/heads/main') && (github.event_name != 'pull_request') }} env: - OSSRHU: ${{ secrets.OSSRHU }} - OSSRHT: ${{ secrets.OSSRHT }} + SONATYPE_CENTRAL_PORTAL_REPO_USERNAME: ${{ secrets.SONATYPE_CENTRAL_PORTAL_REPO_USERNAME }} + SONATYPE_CENTRAL_PORTAL_REPO_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_PORTAL_REPO_PASSWORD }} run: ./mvnw -U -V -s ${{ env.SETTINGS }} -P${{ env.PROFILES }} ${{ env.MAVEN_PROPS }} deploy - name: Docker maven build diff --git a/pom.xml b/pom.xml index 97f3709..54face2 100644 --- a/pom.xml +++ b/pom.xml @@ -461,7 +461,7 @@ true true false - release-sign-artifacts,sonatype-deployment + release-sign-artifacts,sonatype-central-portal-deployment @@ -859,10 +859,10 @@ release-sign-artifacts @@ -909,17 +909,32 @@ - sonatype-deployment - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - + sonatype-central-portal-deployment + + 0.7.0 + + + + + + org.sonatype.central + central-publishing-maven-plugin + ${central-publishing-maven-plugin.version} + true + + + sonatype-central-portal + + + + + + + org.sonatype.central + central-publishing-maven-plugin + + +