-
Notifications
You must be signed in to change notification settings - Fork 2
fix: don't use gradle to change gradle distribution URL #66
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
Conversation
| echo Configuring custom Gradle distribution URL with version: $gradleVersion | ||
| echo gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip | ||
| gradle wrapper --gradle-distribution-url https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip | ||
| echo Setting distribution URL to: https://d2pjps8lqszrgq.cloudfront.net/gradle-$gradleVersion-bin.zip |
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.
nit: distribution URL is duplicated
| run: | | ||
| cd ${{ inputs.working-directory }} | ||
| gradleVersion=$(grep "distributionUrl" ./gradle/wrapper/gradle-wrapper.properties | sed -n 's|.*gradle-\([0-9.]*\)-bin.zip|\1|p') |
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.
nit: typically env vars are SCREAMING_SNAKE_CASE
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip | ||
| distributionUrl=https://services.gradle.org/distributions/gradle-8.12-bin.zip |
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.
We should upgrade to 8.12.1 which is a bugfix for 8.12
Issue #, if available:
Description of changes:
We were using gradle to change the gradle distribution URL. That's fine and works, but the purpose of changing the URL is to avoid gradle outages. If we use gradle to change the URL, a fresh install of gradle needs to be downloaded first, from the default distribution URL, which would fail if there's an outage.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.