-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Clarify what "Gradle installation directory" means for gradlew
#26088
Comments
Thank you for your interest in Gradle! This is a valid documentation issue that we will address. |
By the way, as a derived question, how can I specify a default value for the whole machine for a given property (say, This would be a typical use case for CI runners that provide multiple JDK installations, looping back to: |
### Context Handles Github issues and a few internal issues in sections that have been recently updated in the Gradle User Manual. This is a documentation change ONLY. ### Fixes: - Continuous build description - #26252 - Document GRADLE_LIBS_REPO_OVERRIDE - #24217 - Deprecated alternative to `setOutputFile` - #25586 - Fix build order preference - #26088 - How to use system file watch with symlinks - #26201 - Update *Centralizing repositories declaration* section of [Dependency Management](https://docs.gradle.org/current/userguide/dependency_management.html) for @erichaagdev - Update admonition block CSS for @alllex - Fix javadocs CSS for search background color for @lkasso ### Reviewers: Under development. Co-authored-by: Laura Kassovic <lkassovic@gradle.com>
Looking at the PR that closed this ticket, I do not see any changes that addresses the reported issue (Clarify what "Gradle installation directory" means for gradlew) Also, in the PR, this issue is mentioned with an incorrect label: "Fix build order preference - #26088" Is it possible this issue was incorrectly referenced in that PR? |
Hey @asteiner-psh, the changes aren't public yet. I updated the two files with this question in mind (note this is still not released on https://docs.gradle.org/current):
Gradle and the Gradle wrapper use the same order preference. Is there something I did not answer for you and @joffrey-bion? Please let me know so I can make further updates. |
From the new formulation, it seems that we don't actually need a Gradle installation in the directory that If I create a If yes, this mean I could use it to define default properties that can be overriden on a per-project basis. |
@joffrey-bion, Gradle will automatically store all downloaded versions of Gradle in This is not to be confused with The
What you want to do is put your @asteiner-psh, Gradle and the Wrapper don't use |
No, The only place to do that in the list is the
What do you mean? Then why is this part of the list of places where You said |
Also, I think it would be rather important not to conflate the types of properties and the mechanisms to set them. It is irrelevant to consider the precedence between 2 different properties. We should see 3 independent tables of priorities: one for system properties, one for gradle properties, one for project properties. And in each table, list all mechanisms to set such properties (which will be similar but not the same). I expanded much more in the |
Issue type
Missing information
Problem description
In the list for the order of precedence of Gradle properties, the last location is specified as the
Gradle installation directory
.What does it mean when using the Gradle wrapper mechanism in a project? Is there such a location at all in that case? It would be nice for this information to be present in the doc, as I couldn't find it so far.
Context (optional)
No response
Page with the problem
https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
The text was updated successfully, but these errors were encountered: