The best would be to use the Gradle Java Toolchain feature. https://docs.gradle.org/current/userguide/toolchains.html

That's a bit other way around, Gradle may download and install a JDK with the specified version if that version does not exist in your system.

NetBeans 22 is going to respect the JDK and language version specified in the toolchain. (this is a new feature in NB22)

On 6/7/24 04:20, Fred Welland wrote:
Is there any way to have NB use source/target compatibility declared in build.gradle to select a 'matching' (already configured in NB)  java platform  (w/o ?

So as to avoid having NB hammer in netbeans.hint.jdkPlatform=.... into gradle.properties  (which , for us, is under SCCS).

(Seems silly or petty, but 'we' strive to have build.gradle and related artifacts,  devoid of any sort of IDE-isms)

Alternatively,  maybe some .gitignorable file could track this bread crumb in the  projectDir/.gradle or projectDir/.gradle/nb-cache  or something like that?

TIA,

-Fred



---------------------------------------------------------------------
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

Reply via email to