diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index be1f2b72..5152764c 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -39,6 +39,6 @@ runs: id: read-version shell: bash run: | - version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout) + version=$(sed -n 's/^.*\(.*\)<\/revision>.*$/\1/p' pom.xml) echo "Version is $version" echo "version=$version" >> $GITHUB_OUTPUT diff --git a/pom.xml b/pom.xml index fe8231c1..49ef0239 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 org.springframework.retry spring-retry - 2.0.12-SNAPSHOT + ${revision} Spring Retry + 2.0.12-SNAPSHOT false 17 UTF-8 @@ -302,6 +303,27 @@ + + org.codehaus.mojo + flatten-maven-plugin + 1.6.0 + + ${project.build.directory} + oss + + remove + + + + + flatten + process-resources + + flatten + + + +