Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions .github/workflows/develop-snapshots.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
]

Expand Down Expand Up @@ -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
Expand All @@ -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 "<dependency>"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 }}"
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,9 @@
<url>https://central.sonatype.com/api/v1/publisher</url>
</repository>
<snapshotRepository>
<id>central</id>
<name>Central Repository Snapshots</name>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<id>ossrh</id>
<name>Central Repository OSSRH Snapshots</name>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
<build>
Expand Down