Slackbot
06/29/2023, 12:41 PMSatyarth Sampath
06/29/2023, 12:42 PMPut a file that ends with .gradle (or .init.gradle.kts for Kotlin) in the $GRADLE_HOME/init.d/ directory, in the Gradle distribution.Does this mean, that I cannot use a custom
GRADLE_HOME env variable?Vampire
06/29/2023, 12:43 PMGRADLE_HOME is just a placeholder for the Gradle distribution. If you want to place an init script there, you need to build a custom distribution, or make sure the distribution is at the proper place in the Docker image and add the init script to that.Vampire
06/29/2023, 12:43 PMGRADLE_USER_HOME should anyway be constant within the Docker image, shouldn't it?Satyarth Sampath
06/29/2023, 12:43 PMSatyarth Sampath
06/29/2023, 12:46 PMVampire
06/29/2023, 12:49 PMSatyarth Sampath
06/29/2023, 12:55 PMVampire
06/29/2023, 1:30 PM./gradlew -I yourinitscript ...Satyarth Sampath
06/29/2023, 5:39 PM./gradlew -I )
2. The gradle distribution and version used may also vary across proejcts
3. The path for gradle user home dir may also vary based on the caching path specified by the project's CI configuration.
Seems like an org convention plugin may be the way to go here. Do let me know if you think there could be a better way to handle this.