The upgrade to gradle 9.7.0, uncovered a race condition in our build logic that causes intermittent build failures in native compilation when NUM_COMPILE_THREADS > 1. The build failures occur when native compilation workers concurrently access project properties. The issue is very intermittent.
Fix: Fetch the project properties before starting compilation threads to avoid concurrent access. Verification: Verified that the build artifacts are same as before. --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - cache gradle properties Changes: https://git.openjdk.org/jfx/pull/2357/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=2357&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8393491 Stats: 81 lines in 5 files changed: 69 ins; 1 del; 11 mod Patch: https://git.openjdk.org/jfx/pull/2357.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/2357/head:pull/2357 PR: https://git.openjdk.org/jfx/pull/2357
