On Tue, 1 Sep 2026 09:14:31 GMT, Nir Lisker <[email protected]> wrote:

>> Allows using a Gradle properties file at the project level by requiring the 
>> user-specific one to be present in the user's Gradle dir. A Gradle 
>> properties file is necessary for a proper Gradle build system's 
>> configuration. The user file takes precedence over the project one.
>> 
>> ---------
>> - [x] I confirm that I make this contribution in accordance with the 
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Nir Lisker has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Remove dirty merge artifact

> Tested on Arch Linux: The file is correcty loaded as expected. But it does 
> not seem to actually use the settings. In my case, I tried the following 
> settings (they should fail the Gradle build):
> 
> ```ini
> org.gradle.configuration-cache=true
> org.gradle.configuration-cache.parallel=true
> org.gradle.caching=true
> org.gradle.parallel=true
> ```
> 
> When I put them into the `gradle.properties`, build will fail. In the 
> `gradle-local.properties`, they are read but not processed and build will 
> succeed. Or may I misunderstand something?

I'm confused by the phrasing (which of them is "The file"?), but the rules are 
as follows: `gradle-local.properties` is for JavaFX's properties that are read 
during configuration time, as is stated in the [template 
file](https://github.com/openjdk/jfx/pull/2240/changes#diff-fe53c14ef2920a0b77cd43ba28c73d2cd13bf3677519b0cf9e6785da2a139bf2).
 `gradle.properties` is the only project-local file that can declare the 
`org.gradle` properties before configuration (special treatment). If you want 
to override them, you can use the command line or the user-local file (which 
will affect all gradle builds).

-------------

PR Comment: https://git.openjdk.org/jfx/pull/2240#issuecomment-5498238573

Reply via email to