dweiss commented on code in PR #15550:
URL: https://github.com/apache/lucene/pull/15550#discussion_r2666113371
##########
build-tools/build-infra/src/main/java/org/apache/lucene/gradle/plugins/misc/LuceneRootConfigurationPlugin.java:
##########
@@ -120,7 +120,16 @@ private void applyCommonConfiguration(Project project) {
project.setVersion(project.getRootProject().getVersion());
}
- project.getRepositories().mavenCentral();
+ // use google's maven central mirror first on github runners.
+ // https://github.com/apache/lucene/issues/15541
+ if
(project.getProviders().environmentVariable("GITHUB_ACTIONS").isPresent()) {
Review Comment:
This is the way it should be done but we can't do the same in
declare-repositories.gradle because it's used from contexts where there are no
access to providers. So we use what we have access to in
declare-repositories.gradle but do it "properly" here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]