Description
Attempting to run gradlew with the --offline flag fails:
[...]
FAILURE: Build failed with an exception.
* Where:
Build file '[path]/elasticsearch/rest-api-spec/build.gradle' line: 5
* What went wrong:
A problem occurred evaluating project ':rest-api-spec'.
> Failed to apply plugin class 'org.elasticsearch.gradle.internal.test.rest.RestTestBasePlugin'.
> Failed to download branches.json from: https://raw.githubusercontent.com/elastic/elasticsearch/main/branches.json
[...]
This should not happen, either --offline should be rejected, or we should use the locally available branches.json (if any is present).
But --offline should be supported, this mode is useful, since (most?) development/building/testing usually doesn't require the remote branches (besides the occasional GH unavailability).
Description
Attempting to run
gradlewwith the--offlineflag fails:This should not happen, either
--offlineshould be rejected, or we should use the locally availablebranches.json(if any is present).But
--offlineshould be supported, this mode is useful, since (most?) development/building/testing usually doesn't require the remote branches (besides the occasional GH unavailability).