Skip to content

Commit

Permalink
fixed discovery of project version caused by warning printed by the n…
Browse files Browse the repository at this point in the history
…ew sonarqube plubin
  • Loading branch information
alexradzin committed Oct 5, 2023
1 parent a732e48 commit bac8c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Get project version
id: project-version
run: |
echo "PROJECT_VERSION=$(./gradlew printVersion | grep -A1 '> Configure project :'| grep -v "> Configure project :")" >> $GITHUB_OUTPUT
echo "PROJECT_VERSION=$(./gradlew printVersion |grep 'PROJECT_VERSION=' | cut -d= -f2)" >> $GITHUB_OUTPUT
- name: Upload uber-jar
uses: actions/upload-artifact@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ task generateVersionProperties {
processResources.dependsOn generateVersionProperties

task printVersion {
println project.version
println "PROJECT_VERSION=${project.version}"
}
sonarqube {
properties {
Expand Down

0 comments on commit bac8c3b

Please sign in to comment.