We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac7a1a commit 3c227a0Copy full SHA for 3c227a0
scripts/release-bump.ps1
@@ -1,6 +1,10 @@
1
param(
2
[Parameter(Mandatory=$true)][string]$NewVersion
3
)
4
+if ($NewVersion -notmatch '^\d+\.\d+\.\d+$') {
5
+ Write-Error "Invalid version format. Expected: X.Y.Z"
6
+ exit 1
7
+}
8
# Update pom.xml version using Maven's built-in versioning
9
& mvn versions:set -DnewVersion=$NewVersion -DgenerateBackupPoms=false
10
# Update CHANGELOG compare link
0 commit comments