From 9f43f91da3eb2b5fc024159bf00c77a802993883 Mon Sep 17 00:00:00 2001 From: Dain Sundstrom Date: Tue, 21 Jul 2026 11:57:15 -0700 Subject: [PATCH] Configure Njord release publishing The release currently follows the POM's direct Maven Central URL, which rejects uploads before Njord can validate and publish them. Load the shared Airlift settings and fail early unless credentials and the Njord release route are active. --- .github/workflows/release.yml | 9 +++++++++ .mvn/maven.config | 2 ++ .mvn/settings.xml | 16 ++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .mvn/maven.config create mode 100644 .mvn/settings.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b169fda..5af206a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,6 +40,15 @@ jobs: git config user.name "Airlift Release" git config user.email "airlift-bot@airlift.io" + - name: Verify release configuration + env: + MAVENCENTRAL_USERNAME: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }} + MAVENCENTRAL_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_TOKEN }} + run: | + ./mvnw -B njord:status | tee "${RUNNER_TEMP}/njord-status.log" + grep -F "Repository Auth: Present" "${RUNNER_TEMP}/njord-status.log" + grep -F "Effective URL: njord:template:release-sca" "${RUNNER_TEMP}/njord-status.log" + - name: Prepare release env: MAVEN_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }} diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 0000000..3ee4da1 --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1,2 @@ +-s +${session.rootDirectory}/.mvn/settings.xml diff --git a/.mvn/settings.xml b/.mvn/settings.xml new file mode 100644 index 0000000..f66ba9b --- /dev/null +++ b/.mvn/settings.xml @@ -0,0 +1,16 @@ + + + eu.maveniverse.maven.plugins + + + + sonatype-central-portal + ${env.MAVENCENTRAL_USERNAME} + ${env.MAVENCENTRAL_PASSWORD} + + sonatype-cp + njord:template:release-sca + + + +