-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Is there an existing issue for this?
- I have searched the existing issues
Background
In #12891, we introduced the ability to update the Gradle Wrapper
For the initial release, we are hardcoding the distribution URL to Gradle's public mirror:
| DISTRIBUTION_REPOSITORY_URL = "https://services.gradle.org" |
Some users work behind proxies that redirect https://services.gradle.org/ to internal endpoints such as https://myCompany/gradle-services/
Since this redirection is not specified in the wrapper files, Dependabot cannot automatically detect it. To address this, the distribution API endpoint should be configurable dynamically, for example, through a private registry.
Suggestion
Consider supporting a new registry type in the Dependabot configuration to allow customization of the Gradle distribution URL.
For example, one idea could be the following
version: 2
registries:
gradle-distributions:
type: gradle-distribution # Defaults to https://services.gradle.org if not provided
url: https://myCompany/gradle/
username: octocat # optional
password: ${{secrets.MY_PASSWORD}} # optional
updates:
- package-ecosystem: "gradle"
directory: "/"
registries: "*"
schedule:
interval: "monthly"An alternative could be to use the existing maven-repository registry type; however, since their structure and function differ, this approach may lead to confusion and generate unnecessary traffic.
Additional context
See #13501
Metadata
Metadata
Assignees
Labels
Type
Projects
Status