Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Aug 30, 2023
1 parent 569e53a commit f226b53
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .ci/environments/quarkus-3/after.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ set -euo pipefail
script_dir_path=$(cd `dirname "${BASH_SOURCE[0]}"`; pwd -P)
mvn_cmd="mvn ${BUILD_MVN_OPTS:-} ${BUILD_MVN_OPTS_QUARKUS_UPDATE:-}"

set -x

# Retrieve current Maven project version
mvn -q -Dexpression=project.version -DforceStdout help:evaluate
project_version=$(mvn -q -Dexpression=project.version -DforceStdout help:evaluate)
# New version is based on current project version and increment the Major => (M+1).m.y
echo ${project_version} | awk -F. -v OFS=. '{$1 += 1 ; print}'
new_version=$(echo ${project_version} | awk -F. -v OFS=. '{$1 += 1 ; print}')

# Change version
set -x
${mvn_cmd} -fae -N -e versions:update-parent -Dfull -DparentVersion="[${new_version}]" -DallowSnapshots=true -DgenerateBackupPoms=false
${mvn_cmd} -fae -N -e versions:update-child-modules -Dfull -DallowSnapshots=true -DgenerateBackupPoms=false

0 comments on commit f226b53

Please sign in to comment.