From 8e8e5629d56a291a22adfc104eb43a9dd61076be Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel Date: Wed, 1 Jul 2026 13:55:14 +0200 Subject: [PATCH 1/5] Bump cds-services to 4.9.1. --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 49d1d62..272f6e9 100644 --- a/pom.xml +++ b/pom.xml @@ -64,7 +64,7 @@ - 4.9.0 + 4.9.1 8.9.11 From 47c61cb0f33aaa492a6204a2297c5d233395587d Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel Date: Wed, 1 Jul 2026 14:23:11 +0200 Subject: [PATCH 2/5] More version updates --- pom.xml | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 272f6e9..4f72ba7 100644 --- a/pom.xml +++ b/pom.xml @@ -88,7 +88,7 @@ com.sap.cloud.sdk sdk-bom - 5.24.0 + 5.31.0 pom import @@ -121,6 +121,55 @@ cds-feature-notifications ${revision} + + + + + com.fasterxml.jackson.core + jackson-databind + 2.22.0 + + + com.fasterxml.jackson.core + jackson-annotations + 2.22 + + + com.fasterxml.jackson.core + jackson-core + 2.22.0 + + + org.bouncycastle + bcprov-jdk18on + 1.84 + + + org.bouncycastle + bcpkix-jdk18on + 1.84 + + + org.jetbrains.kotlin + kotlin-stdlib + 1.9.25 + + + org.jetbrains.kotlin + kotlin-stdlib-common + 1.9.25 + + + org.jetbrains.kotlin + kotlin-stdlib-jdk7 + 1.9.25 + + + org.jetbrains.kotlin + kotlin-stdlib-jdk8 + 1.9.25 + + From 82791c6ab9e25816e8b930943e7c83404890138e Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel Date: Wed, 1 Jul 2026 14:42:07 +0200 Subject: [PATCH 3/5] Bump version to 0.0.1-alpha --- CHANGELOG.md | 4 +++- pom.xml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc2d28d..dd0edb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ This project adheres to [Semantic Versioning](http://semver.org/). The format is based on [Keep a Changelog](http://keepachangelog.com/). -## Version 1.0.0 - not yet released +## Version 0.0.1-alpha - 2026-07-01 + +Initial release. ### Added diff --git a/pom.xml b/pom.xml index 4f72ba7..d379b14 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ - 1.0.0-SNAPSHOT + 0.0.1-alpha 17 ${java.version} UTF-8 From c0149198da494525e6d0d13c9ea921922ac2dbdc Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel Date: Wed, 1 Jul 2026 14:44:18 +0200 Subject: [PATCH 4/5] Add release workflow --- .github/workflows/release.yml | 124 ++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7fec39d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,124 @@ +name: Deploy to Maven Central + +env: + JAVA_VERSION: '17' + MAVEN_VERSION: '3.9.15' + +on: + release: + types: [ "released" ] + +jobs: + requires-approval: + runs-on: ubuntu-latest + name: "Waiting for release approval" + environment: release-approval + permissions: + contents: read + steps: + - name: Approval Step + run: echo "Release has been approved!" + + verify-version: + needs: requires-approval + name: Verify Version Matches Tag + runs-on: ubuntu-latest + timeout-minutes: 10 + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Set up Java + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5 + with: + java-version: ${{ env.JAVA_VERSION }} + distribution: sapmachine + cache: maven + + - name: Set up Maven + uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5 + with: + maven-version: ${{ env.MAVEN_VERSION }} + + - name: Verify pom.xml revision matches release tag + run: | + TAG="${{ github.event.release.tag_name }}" + REVISION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout) + echo "Tag: $TAG" + echo "Revision: $REVISION" + if [ "$TAG" != "$REVISION" ]; then + echo "::error::Release tag '$TAG' does not match pom.xml '$REVISION'. Open a 'Prep release' PR to bump the version before tagging." + exit 1 + fi + shell: bash + + blackduck: + needs: verify-version + name: Blackduck Scan + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Scan With Black Duck + uses: cap-java/.github/actions/scan-with-blackduck@296573b55e906f5c77a1855bcfe4285cbbc5cac4 #main + with: + blackduck_token: ${{ secrets.BLACK_DUCK_TOKEN }} + github_token: ${{ secrets.GITHUB_TOKEN }} + maven-version: ${{ env.MAVEN_VERSION }} + project-name: com.sap.cds.feature.notifications + included-modules: cds-feature-notifications + version: ${{ github.event.release.tag_name }} + + build: + name: Build + runs-on: ubuntu-latest + timeout-minutes: 30 + needs: verify-version + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Build + uses: cap-java/.github/actions/build@296573b55e906f5c77a1855bcfe4285cbbc5cac4 #main + with: + java-version: ${{ env.JAVA_VERSION }} + maven-version: ${{ env.MAVEN_VERSION }} + + deploy: + name: Deploy to Maven Central + runs-on: ubuntu-latest + timeout-minutes: 30 + needs: [blackduck, build] + environment: release + permissions: + contents: read + steps: + - name: Checkout + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 + with: + ref: ${{ github.event.release.tag_name }} + + - name: Deploy + uses: cap-java/.github/actions/deploy-release@296573b55e906f5c77a1855bcfe4285cbbc5cac4 #main + with: + user: ${{ secrets.CENTRAL_REPOSITORY_USER }} + password: ${{ secrets.CENTRAL_REPOSITORY_PASS }} + gpg-pub-key: ${{ secrets.PGP_PUBKEY_ID }} + gpg-private-key: ${{ secrets.PGP_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.PGP_PASSPHRASE }} + revision: ${{ github.event.release.tag_name }} + maven-version: ${{ env.MAVEN_VERSION }} From 5c5580c4d445503df840a64a24e4f2041ebf3143 Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel Date: Wed, 1 Jul 2026 16:12:51 +0200 Subject: [PATCH 5/5] Remove version from integration-tests/pom.xml, will be taken automatically --- README.md | 2 +- integration-tests/pom.xml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 34ef97b..e4ac3a5 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Add the plugin to your `srv/pom.xml`: com.sap.cds cds-feature-notifications - 1.0.0-SNAPSHOT + ``` diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml index 38bfb81..6c289f6 100644 --- a/integration-tests/pom.xml +++ b/integration-tests/pom.xml @@ -20,8 +20,6 @@ - - 1.0.0-SNAPSHOT 17