dweiss opened a new pull request, #16543:
URL: https://github.com/apache/lucene/pull/16543

   This patch adds a way to specify custom locations for gradle wrapper and 
gradle distribution. The assumptions were:
   1) minimize surface of this change to a single class emulating 
gradle-wrapper's logic to "install" the gradle distribution specified in 
`gradle-wrapper.properties`, if it's not installed,
   2) custom wrapper and distribution URLs passed via env variables, with 
`${gradleVersion}` replaceable pattern (works like gradle's official 
distributionUrl).
   3) ensure the downloaded distribution matches the expected checksums; the 
install path should match the "official" URL and thus be transparent to other 
scripts and checks in Lucene.
   
   I've tested this locally, for example:
   ```
   $ find ~/tmp/gradle
   .
   ./9.7.0
   ./9.7.0/gradle-9.7.0-bin.zip
   ./9.7.0/gradle-wrapper.jar
   
   $ rm -rf ~/.gradle/wrapper
   $ 
LUCENE_GRADLE_WRAPPER_URL='file:///home/dweiss/tmp/gradle/${gradleVersion}/gradle-wrapper.jar'
   
LUCENE_GRADLE_DISTRIBUTION_URL='file:///home/dweiss/tmp/gradle/${gradleVersion}/gradle-${gradleVersion}-bin.zip'
 ./gradlew tasks
   ```


-- 
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]

Reply via email to