Skip to content

Commit 6454958

Browse files
committed
v5.15.0.RELEASE Release
1 parent b39d36e commit 6454958

File tree

9 files changed

+34
-11
lines changed

9 files changed

+34
-11
lines changed

ci/create-release.sh

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,36 @@
22

33
set -euo pipefail
44

5-
RELEASE=$1
6-
SNAPSHOT=$2
5+
RELEASE=${1:-}
6+
SNAPSHOT=${2:-}
7+
8+
function print_usage {
9+
echo "
10+
Usage:
11+
12+
create-release.sh <RELEASE_VERSION> <NEXT_SNAPSHOT>
13+
14+
Where:
15+
- RELEASE_VERSION like 5.15.0.RELEASE
16+
- NEXT_SNAPSHOT like 5.16.0.BUILD-SNAPSHOT
17+
"
18+
}
19+
20+
21+
if [[ "$RELEASE" == v* || "$RELEASE" != *.RELEASE ]]; then
22+
print_usage
23+
exit 1
24+
elif [[ "$SNAPSHOT" == v* || "$SNAPSHOT" != *.BUILD-SNAPSHOT ]]; then
25+
print_usage
26+
exit 1
27+
fi
28+
29+
git switch -c "release-$RELEASE"
730

831
./mvnw versions:set -DnewVersion=$RELEASE -DgenerateBackupPoms=false
932
git add .
1033
git commit --message "v$RELEASE Release"
11-
git tag -s v$RELEASE -m "v$RELEASE"
34+
git tag v$RELEASE -m "v$RELEASE"
1235

1336
git reset --hard HEAD^1
1437
./mvnw versions:set -DnewVersion=$SNAPSHOT -DgenerateBackupPoms=false

cloudfoundry-client-reactor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>cloudfoundry-client-reactor</artifactId>

cloudfoundry-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>cloudfoundry-client</artifactId>

cloudfoundry-operations/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>cloudfoundry-operations</artifactId>

cloudfoundry-util/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>cloudfoundry-util</artifactId>

integration-test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>integration-test</artifactId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<artifactId>cloudfoundry-java-client</artifactId>
2424
<name>Cloud Foundry Java Client Parent</name>
2525
<description>A Java language binding for interacting with a Cloud Foundry instance</description>
26-
<version>5.15.0.BUILD-SNAPSHOT</version>
26+
<version>5.15.0.RELEASE</version>
2727
<packaging>pom</packaging>
2828
<url>https://github.com/cloudfoundry/cf-java-client</url>
2929

test-log-cache/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>test-log-cache</artifactId>

test-service-broker/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>org.cloudfoundry</groupId>
2727
<artifactId>cloudfoundry-java-client</artifactId>
28-
<version>5.15.0.BUILD-SNAPSHOT</version>
28+
<version>5.15.0.RELEASE</version>
2929
</parent>
3030

3131
<artifactId>test-service-broker</artifactId>

0 commit comments

Comments
 (0)