Skip to content

Commit 69acf34

Browse files
committed
Merge branch '2.x' into 3.0
2 parents 09f71f8 + 3001d78 commit 69acf34

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

init-release.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

release-notes/VERSION-2.x

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Jackson components (core, modules)
1111

1212
2.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.

0 commit comments

Comments
 (0)