Releast train next version updates: 2020.0.2-SNAPSHOT

This commit is contained in:
Soby Chacko
2021-02-26 15:41:05 -05:00
parent 559264c197
commit 9c49c57d44
3 changed files with 27 additions and 27 deletions

View File

@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.springframework.cloud.stream.app</groupId>
<artifactId>applications</artifactId>
<version>3.0.1</version>
<version>3.0.2-SNAPSHOT</version>
<name>applications</name>
<description>Infrastructure for stream applications</description>
<packaging>pom</packaging>

View File

@@ -24,35 +24,35 @@ function iterate_through_apps_folders_and_update {
echo "FOLDER NAME - ${folder}"
pushd ${folder}
../../../mvnw -Ddisable.checks=true versions:set -DnewVersion=$VERSION -DgenerateBackupPoms=false
#../../../mvnw -Ddisable.checks=true versions:update-parent -DparentVersion=$PARENT_VERSION -Pspring -DgenerateBackupPoms=false
../../../mvnw -Ddisable.checks=true versions:update-parent -DparentVersion=$PARENT_VERSION -Pspring -DgenerateBackupPoms=false
# only used after a release for updating parent versions.
sed -i '' 's/<version>3.0.3/<version>'3.0.4-SNAPSHOT'/g' pom.xml
# sed -i '' 's/<version>3.0.3/<version>'3.0.4-SNAPSHOT'/g' pom.xml
popd
done
cd ../../
# if [[ $VERSION =~ M[0-9]|RC[0-9] ]]; then
# lines=$(find $BASE_DIR -type f -name pom.xml | xargs grep SNAPSHOT | grep -v ".contains(" | grep -v "<!--"| grep -v regex | wc -l)
# if [ $lines -eq 0 ]; then
# echo "All good"
# else
# echo "Snapshots found under $BASE_DIR. Exiting build"
# find $BASE_DIR -type f -name pom.xml | xargs grep SNAPSHOT | grep -v ".contains(" | grep -v regex
# git checkout -f
# exit 1
# fi
# else
# lines=$(find $BASE_DIR -type f -name pom.xml | xargs egrep "SNAPSHOT|M[0-9]|RC[0-9]" | grep -v ".contains(" | grep -v regex | wc -l)
# if [ $lines -eq 0 ]; then
# echo "All good"
# else
# echo "Non Release versions found under $BASE_DIR. Exiting build"
# find $BASE_DIR -type f -name pom.xml | xargs egrep "SNAPSHOT|M[0-9]|RC[0-9]" | grep -v ".contains(" | grep -v regex
# git checkout -f
# exit 1
# fi
# fi
if [[ $VERSION =~ M[0-9]|RC[0-9] ]]; then
lines=$(find $BASE_DIR -type f -name pom.xml | xargs grep SNAPSHOT | grep -v ".contains(" | grep -v "<!--"| grep -v regex | wc -l)
if [ $lines -eq 0 ]; then
echo "All good"
else
echo "Snapshots found under $BASE_DIR. Exiting build"
find $BASE_DIR -type f -name pom.xml | xargs grep SNAPSHOT | grep -v ".contains(" | grep -v regex
git checkout -f
exit 1
fi
else
lines=$(find $BASE_DIR -type f -name pom.xml | xargs egrep "SNAPSHOT|M[0-9]|RC[0-9]" | grep -v ".contains(" | grep -v regex | wc -l)
if [ $lines -eq 0 ]; then
echo "All good"
else
echo "Non Release versions found under $BASE_DIR. Exiting build"
find $BASE_DIR -type f -name pom.xml | xargs egrep "SNAPSHOT|M[0-9]|RC[0-9]" | grep -v ".contains(" | grep -v regex
git checkout -f
exit 1
fi
fi
}

View File

@@ -9,7 +9,7 @@
<parent>
<groupId>org.springframework.cloud.stream.app</groupId>
<artifactId>stream-applications-core</artifactId>
<version>3.0.3</version>
<version>3.0.4-SNAPSHOT</version>
<relativePath>../applications/stream-applications-core/pom.xml</relativePath>
</parent>
@@ -19,8 +19,8 @@
</modules>
<properties>
<revision>2020.0.1</revision>
<apps.version>3.0.1</apps.version>
<revision>2020.0.2-SNAPSHOT</revision>
<apps.version>3.0.2-SNAPSHOT</apps.version>
<cdc-debezium-source.version>${apps.version}</cdc-debezium-source.version>
<file-source.version>${apps.version}</file-source.version>
<ftp-source.version>${apps.version}</ftp-source.version>