File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 25
25
cache : maven
26
26
- name : Build with Maven
27
27
run : mvn -B package --file pom.xml
28
-
28
+
29
+ - name : bump minor version
30
+ run : |
31
+ scripts/bump_minor_version
Original file line number Diff line number Diff line change 3
3
4
4
<groupId >datastax.astra.migrate</groupId >
5
5
<artifactId >cassandra-data-migrator</artifactId >
6
- <version >3.1.0 </version >
6
+ <version >${revision} </version >
7
7
<packaging >jar</packaging >
8
8
9
9
<properties >
10
10
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
11
+ <revision >3.1.0</revision >
11
12
<scala .version>2.12.17</scala .version>
12
13
<scala .main.version>2.12</scala .main.version>
13
14
<spark .version>3.3.1</spark .version>
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -x
3
+ CURRENT_VERSION=$( mvn help:evaluate -Dexpression=revision -q -DforceStdout)
4
+ RELEASE_VERSION=${CURRENT_VERSION%% }
5
+ BASE_VERSION=$( echo " $RELEASE_VERSION " | cut -d' .' -f1-2)
6
+ MINOR_VERSION=$( echo " $RELEASE_VERSION " | cut -d' .' -f3)
7
+ NEXT_MINOR_VERSION=$(( $MINOR_VERSION + 1 ))
8
+ NEXT_SNAPSHOT=" ${BASE_VERSION} .${NEXT_MINOR_VERSION} "
9
+ printf " next-snapshot: %s\n" " ${NEXT_SNAPSHOT} "
10
+ mvn versions:set-property -DallowSnapshots -DnewVersion=" ${NEXT_SNAPSHOT} " -Dproperty=revision
You can’t perform that action at this time.
0 commit comments