diff --git a/.github/workflows/develop-snapshots.yml b/.github/workflows/develop-snapshots.yml index 15ca58f..cda36e2 100644 --- a/.github/workflows/develop-snapshots.yml +++ b/.github/workflows/develop-snapshots.yml @@ -106,6 +106,11 @@ jobs: "id": "central", "username": "${env.CENTRAL_TOKEN_USERNAME}", "password": "${env.CENTRAL_TOKEN_PASSWORD}" + }, + { + "id": "ossrh", + "username": "${env.CENTRAL_TOKEN_USERNAME}", + "password": "${env.CENTRAL_TOKEN_PASSWORD}" } ] @@ -139,9 +144,9 @@ jobs: sleep 10 # Check if snapshot metadata is available - METADATA_URL="https://central.sonatype.com/repository/maven-snapshots/io/logdash/logdash/$VERSION/maven-metadata.xml" + METADATA_URL="https://s01.oss.sonatype.org/content/repositories/snapshots/io/logdash/logdash/$VERSION/maven-metadata.xml" if curl -s -f "$METADATA_URL" > /dev/null; then - echo "✅ Snapshot metadata confirmed at Maven Central" + echo "✅ Snapshot metadata confirmed at OSSRH" else echo "⚠️ Snapshot metadata not yet available (may take time to propagate)" fi @@ -150,7 +155,7 @@ jobs: run: | VERSION="${{ needs.validate-develop.outputs.snapshot-version }}" echo "✅ Successfully deployed $VERSION to Maven Central Snapshots" - echo "📦 Available at: https://central.sonatype.com/repository/maven-snapshots/io/logdash/logdash/$VERSION/" + echo "📦 Available at: https://s01.oss.sonatype.org/content/repositories/snapshots/io/logdash/logdash/$VERSION/" echo "" echo "🔍 Maven dependency:" echo "" @@ -243,8 +248,8 @@ jobs: echo "⏳ Waiting for complete propagation..." sleep 10 - # Check Maven Central snapshots - METADATA_URL="https://central.sonatype.com/repository/maven-snapshots/io/logdash/logdash/$VERSION/maven-metadata.xml" + # Check Maven Central snapshots via OSSRH + METADATA_URL="https://s01.oss.sonatype.org/content/repositories/snapshots/io/logdash/logdash/$VERSION/maven-metadata.xml" if curl -s -f "$METADATA_URL" > /dev/null; then echo "✅ Maven Central snapshot confirmed and accessible" else @@ -256,7 +261,7 @@ jobs: echo "🏗️ Maven Central Snapshots: ${{ needs.maven-central-snapshot.result }}" echo "📦 GitHub Packages: ${{ needs.github-packages-snapshot.result }}" echo "🔢 Version: $VERSION" - echo "🌐 Repository: https://central.sonatype.com/repository/maven-snapshots/" + echo "🌐 Repository: https://s01.oss.sonatype.org/content/repositories/snapshots/" notification: runs-on: ubuntu-latest @@ -292,6 +297,6 @@ jobs: echo "" echo "🔗 Quick Access:" - echo "- Maven Central: https://central.sonatype.com/repository/maven-snapshots/io/logdash/logdash/$VERSION/" + echo "- Maven Central: https://s01.oss.sonatype.org/content/repositories/snapshots/io/logdash/logdash/$VERSION/" echo "- GitHub Packages: https://github.com/logdash-io/java-sdk/packages" echo "- Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ No newline at end of file diff --git a/pom.xml b/pom.xml index 4954d2d..a3b4343 100644 --- a/pom.xml +++ b/pom.xml @@ -549,9 +549,9 @@ https://central.sonatype.com/api/v1/publisher - central - Central Repository Snapshots - https://central.sonatype.com/repository/maven-snapshots/ + ossrh + Central Repository OSSRH Snapshots + https://s01.oss.sonatype.org/content/repositories/snapshots/