Skip to content

Conversation

@0marperez
Copy link
Contributor

@0marperez 0marperez commented Feb 6, 2025

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.

@0marperez 0marperez marked this pull request as ready for review February 6, 2025 16:53
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
Copy link
Member

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')
Copy link
Member

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
Copy link
Member

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

@0marperez 0marperez merged commit 3694e72 into main Feb 7, 2025
5 checks passed
@0marperez 0marperez deleted the fix-gradle-action branch February 7, 2025 17:01
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.

2 participants