Re: Use different JDKs in one Project
Giles Winstanley <[email protected]>
| Newsgroups | gmane.comp.java.ide.netbeans.user |
|---|---|
| Message-ID | <[email protected]> |
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: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists