-
Notifications
You must be signed in to change notification settings - Fork 114
ci(vss): auto-extract Gradle version number ffg upgrade #593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci(vss): auto-extract Gradle version number ffg upgrade #593
Conversation
I've assigned @tnull as a reviewer! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Looks good generally, some questions.
@@ -61,10 +61,15 @@ jobs: | |||
run: | | |||
# Print Info | |||
java -version | |||
gradle --version | |||
GRADLE_VERSION=$(gradle --version | grep "Gradle" | awk '{print $2}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we just fail here? If we can't extract the version it probably means something during the install went wrong or something unexpected happened, no? I think we should then just abort here rather than continuing with a default, which might just be confusing to debug if it ever gets hit?
echo "Failed to extract Gradle version, using default" | ||
GRADLE_VERSION="9.0.0-rc-1" | ||
fi | ||
echo $GRADLE_VERSION |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe still print the entire gradle --version
in addition to the extracted value?
@@ -61,12 +61,12 @@ jobs: | |||
run: | | |||
# Print Info | |||
java -version | |||
GRADLE_VERSION=$(gradle --version | grep "Gradle" | awk '{print $2}') | |||
GRADLE_VERSION=$(gradle --version | awk '/^Gradle/ {print $2}' | head -1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems some of these changes should go in the first commit?
0cef221
to
ef9254a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, feel free to squash!
ef9254a
to
0392313
Compare
update to Gradle 9.0 and auto-extract version number.
0392313
to
8c157c3
Compare
Squashed! |
What this PR does
Related Issues