Skip to content
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

Allow overriding the default Gradle library repository through a new system property #27031

Closed
akiraly opened this issue Nov 13, 2023 · 1 comment
Labels
closed:duplicate Duplicated or superseeded by another issue

Comments

@akiraly
Copy link
Contributor

akiraly commented Nov 13, 2023

Expected Behavior

Allow overriding the default Gradle library repository through a new system property system property - for example called org.gradle.internal.gradle.libs.repo.override. Previously overriding was only possible through the GRADLE_LIBS_REPO_OVERRIDE environment variable.

The system property can be more useful because it can be defined in the build itself (either through gradle.properties or programmatically)

Current Behavior (optional)

Currently overriding is only possible through the GRADLE_LIBS_REPO_OVERRIDE environment variable. This is not ideal because it has to communicated and setup/maintained manually by each team member on his/her machine.

Context

IDE-s (like Intellij) automatically try to download the library files in certain situations (for example when using convenience plugins). The IDE will hang for hours (!) when the default library url is not accessible (for example behind a corporate firewall).

This new system property can be useful for every project which needs to override the default Gradle library repository (typical in corporate settings, behind a firm firewall). While the environment variable works it is not convenient: each developer has to define the environment variable manually in his/her dev environment. The system property is more practical because it can be defined inside the build and kept together with the rest of the build configuration in the source repository.

Additional information: I already opened a PoC PR (#26743) for this but maybe I should have started with an issue first, hence why I am submitting this now.

@akiraly akiraly added a:feature A new functionality to-triage labels Nov 13, 2023
@cobexer
Copy link
Member

cobexer commented Nov 14, 2023

Thank you for your interest in Gradle!

This issue will be closed as a duplicate of

Please add your use case and 👍 to that issue.


Please see our comment on your PR which linked to the same issue we are linking above. Please continue the discussion either in the PR or in the linked issue.

@cobexer cobexer closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
@cobexer cobexer added closed:duplicate Duplicated or superseeded by another issue and removed a:feature A new functionality labels Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed:duplicate Duplicated or superseeded by another issue
Projects
None yet
Development

No branches or pull requests

2 participants