Hi Ulrich,
I don't know if it would work in this context, but it seems reasonable
to hope that Gradle's Java Toolchains
(https://docs.gradle.org/current/userguide/toolchains.html) might help
in this scenario. I've not tried using multiple toolchains within a
single multi-project build, but given that the aim is to allow Gradle to
spawn tasks using arbitrary JVMs, it sounds like a good fit. I imagine
having a top-level "default" toolchain for the main project, and
overriding it on a per-sub-project basis may work.
Stan
On 04/03/2025 11:47, Ulrich Mayring wrote:
Hi all,
is it possible to tell Netbeans to use different JDK platforms in one
project? I have a Gradle parent project and under Build/Gradle
Execution I can only select one JDK and for all the subprojects this
selection is greyed out.
I'd like to:
- run a subproject with a different JDK
- run a certain gradle task (tests) with a different JDK
Is that at all possible?
Kind regards,
Ulrich
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists