On Mon, 3 Aug 2026 09:28:42 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).

Thanks for the clarification.

Using a gitignored `gradle-local.properties` for `CONF` and other OpenJFX 
specific settings works for me.

I suggest `gradle-local.properties` rather than `local.properties`, since the 
latter is conventionally associated with Android builds [1].

The existing `gradle.properties.template` could therefore be renamed to 
`gradle-local.properties.template`.

The settings I plan to override locally are:


org.gradle.dependency.verification=lenient
org.gradle.daemon=false


Other developers may also want to override settings such as:


org.gradle.jvmargs=-Xmx...


The dependency verification override is needed in my workflow because I usually 
do not compile the WebKit and Media sources. Instead, I set the 
`STUB_RUNTIME_OPENJFX` Gradle property so that the WebKit and Media libraries 
are downloaded automatically from Maven Central [2].

Because the SHA-256 hashes of these stub runtimes are not currently included in 
`gradle/verification-metadata.xml`, I need to set: 
`org.gradle.dependency.verification=lenient`.

If SNAPSHOT builds of OpenJFX were available, this override would not be 
necessary [3].

Gradle daemon is disabled due to known issues on Windows [4][5].

*Building OpenJFX* wiki page [6] would also require an update if this pull 
request is merged.

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

[1] - https://developer.android.com/build#properties-files
[2] - 
https://github.com/openjdk/jfx/blob/28%2B2/WEBKIT-MEDIA-STUBS.md#officially-released-libraries
[3] - 
https://mail.openjdk.org/archives/list/[email protected]/thread/OPTPHQLEGL7DB3MGKWHM2L4DHTB7JBHZ/
[4] - 
https://bugs.openjdk.org/browse/JDK-8290976?focusedId=14512413&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14512413
[5] - https://bugs.openjdk.org/browse/JDK-8359899
[6] - https://wiki.openjdk.org/display/OpenJFX/Building+OpenJFX

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

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

Reply via email to