Skip to content

Commit 42f67bf

Browse files
committed
Add a check-version.sh script for releases
(cherry picked from commit 49f1d5d)
1 parent 7ab204a commit 42f67bf

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ Besides the mentioned about `artifact` and `skip` elements the following test co
220220
<skipNative>true</skipNative>
221221
<!-- skip JVM test runs but do run the native test -->
222222
<skipJvm>true</skipJvm>
223-
223+
224224
<!-- while skipping means adding `maven.test.skip` property to the config, excluding means removing the test module for the artifact -->
225225
<excluded>true</excluded>
226-
226+
227227
<!-- use the failsafe plugin instead of the surefire one (which is the default) for the test-->
228228
<mavenFailsafePlugin>true</mavenFailsafePlugin>
229229

@@ -347,10 +347,10 @@ and the generated ones for every member. The reports can be found under the `tar
347347

348348
## Release steps
349349

350-
1. Use the Maven Release Plugin to tag and deploy to the Sonatype OSS Nexus:
351-
> TAG=0.0.5 && ./mvnw release:prepare release:perform -DdevelopmentVersion=999-SNAPSHOT -DreleaseVersion=$TAG -Dtag=$TAG -DperformRelease -Prelease,releaseNexus -DskipTests -Darguments=-DskipTests
350+
1. Use the Maven Release Plugin to tag and deploy to the Sonatype OSS Nexus:
351+
> TAG=0.0.5 && ./check-version.sh $TAG && ./mvnw release:prepare release:perform -DdevelopmentVersion=999-SNAPSHOT -DreleaseVersion=$TAG -Dtag=$TAG -DperformRelease -Prelease,releaseNexus -DskipTests -Darguments=-DskipTests
352352
2. The repository will be automatically closed and released, there's nothing else to do.
353-
353+
354354
---
355355
**IMPORTANT**
356356

@@ -388,5 +388,5 @@ Due to the Apache process, it is possible that the Apache Camel artifacts may no
388388
</profiles>
389389
<activeProfiles>
390390
<activeProfile>camel-staging</activeProfile>
391-
</activeProfiles>
391+
</activeProfiles>
392392
```

check-version.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/bash
2+
3+
TAG=$1
4+
QUARKUS_VERSION=$(./mvnw help:evaluate -Dexpression=quarkus.version -q -DforceStdout)
5+
6+
if [[ "${TAG}" != "${QUARKUS_VERSION}" ]]; then
7+
echo "ERROR: Quarkus version in POM (${QUARKUS_VERSION}) is not the same as \$TAG (${TAG})"
8+
exit 1
9+
fi
10+
11+
exit 0

0 commit comments

Comments
 (0)