You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently disable Gradle Wrapper distribution URL validation (--no-validate-url) as a workaround because the wrapper task’s URL validation fails when running behind Dependabot’s proxy.
To keep updates working, we pass --no-validate-url and set validateDistributionUrl=false, which skips the distribution URL validation step.
This workaround only seems necessary due to a proxy-related issue. When running without the Dependabot proxy (for example, through my own proxy), the validation works as expected.
Code improvement description
We currently disable Gradle Wrapper distribution URL validation (
--no-validate-url) as a workaround because the wrapper task’s URL validation fails when running behind Dependabot’s proxy.https://github.com/dependabot/dependabot-core/blob/e7b8811f3496ae5e4d741dd246aab721884228b4/gradle/lib/dependabot/gradle/file_updater/wrapper_updater.rb#L126
Context / Background
When the Gradle
wrappertask runs, Gradle validates the configured distribution URL by issuing aHEADrequest, for example:HEAD https://services.gradle.org/distributions/gradle-9.3.0-bin.zipThis head request then redirects to GitHub and ultimately fails with
Logs
To keep updates working, we pass
--no-validate-urland setvalidateDistributionUrl=false, which skips the distribution URL validation step.This workaround only seems necessary due to a proxy-related issue. When running without the Dependabot proxy (for example, through my own proxy), the validation works as expected.