File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Exit on error
4+ set -e
5+
6+ # Check if pom.xml exists
7+ if [ ! -f " pom.xml" ]; then
8+ echo " Error: pom.xml not found in current directory"
9+ exit 1
10+ fi
11+
12+ # Remove -SNAPSHOT from parent pom reference only
13+ echo " Removing -SNAPSHOT from parent pom reference..."
14+ sed -i.bak ' /<parent>/,/<\/parent>/s/<version>\([^<]*\)-SNAPSHOT<\/version>/<version>\1<\/version>/' pom.xml
15+
16+ # Check if changes were made
17+ if ! diff pom.xml pom.xml.bak > /dev/null 2>&1 ; then
18+ echo " Successfully removed -SNAPSHOT from pom.xml"
19+ rm pom.xml.bak
20+ else
21+ echo " No -SNAPSHOT found in pom.xml for parenet pom"
22+ rm pom.xml.bak
23+ fi
24+
25+ # Git add pom.xml
26+ echo " Adding pom.xml to git..."
27+ git add pom.xml
28+
29+ # Open emacs to edit release notes
30+ echo " Opening emacs to edit release notes..."
31+ emacs -nw release-notes/VERSION*
32+ echo " Adding release-notes/VERSION* to git..."
33+ git add release-notes/VERSION*
34+
35+ git diff --staged
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ Jackson components (core, modules)
1111
12122.21.0 (not yet released)
1313
14- - No changes since 2.20
14+ # 115 : Fix cycloneDX SBOM generation settings
1515
16- 2.20.1 (not yet released )
16+ 2.20.1 (30 -Oct- 2025 )
1717
1818- Configure `cyclonedx-maven-plugin` with `attach = true ` to try to get
1919 SBOMs published.
You can’t perform that action at this time.
0 commit comments