Skip to content

fix: update-gradle.sh#2195

Merged
marandaneto merged 1 commit into
mainfrom
fix/update-gradle-script
Aug 2, 2022
Merged

fix: update-gradle.sh#2195
marandaneto merged 1 commit into
mainfrom
fix/update-gradle-script

Conversation

@vaind

@vaind vaind commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

Ensures updater workflow doesn't fail because ./gradlew --version reports a different version than the tag on github.com/gradle/gradle, when the tag ends with a zero.

#skip-changelog

@vaind
vaind requested review from adinauer and romtsn as code owners August 2, 2022 13:10
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #2195 (2448961) into main (f75a0a7) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main    #2195   +/-   ##
=========================================
  Coverage     80.91%   80.91%           
  Complexity     3313     3313           
=========================================
  Files           236      236           
  Lines         12154    12154           
  Branches       1615     1615           
=========================================
  Hits           9834     9834           
  Misses         1725     1725           
  Partials        595      595           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f75a0a7...2448961. Read the comment docs.

Comment thread scripts/update-gradle.sh
Comment on lines +13 to +16
# Add trailing ".0" - gradlew outputs '7.1' instead of '7.1.0'
if [[ "$version" =~ ^[0-9]\.[0-9]$ ]]; then
version="$version.0"
fi

@marandaneto marandaneto Aug 2, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at https://github.com/gradle/gradle/releases/tag/v7.5.0
The tag is v7.5.0 but the command to update is:
./gradlew wrapper --gradle-version=7.5
Wouldn't that break our auto-updater?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's already trimmed below in set-version

@marandaneto
marandaneto merged commit 2759ef9 into main Aug 2, 2022
@marandaneto
marandaneto deleted the fix/update-gradle-script branch August 2, 2022 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants