Clean backport of a follow up fix after updating gradle to 9.7.0. Sequence wise should be integrated after https://github.com/openjdk/jfx27u/pull/27
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Backport 69b798b8e67d71d62cd508f37b3197a0aed93882 Changes: https://git.openjdk.org/jfx27u/pull/28/files Webrev: https://webrevs.openjdk.org/?repo=jfx27u&pr=28&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8393491 Stats: 77 lines in 5 files changed: 65 ins; 1 del; 11 mod Patch: https://git.openjdk.org/jfx27u/pull/28.diff Fetch: git fetch https://git.openjdk.org/jfx27u.git pull/28/head:pull/28 PR: https://git.openjdk.org/jfx27u/pull/28
