[ 
https://issues.apache.org/jira/browse/NETBEANS-5781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17388843#comment-17388843
 ] 

Laszlo Kishalmi commented on NETBEANS-5781:
-------------------------------------------

Oh, just seen the env section. OpenJDK 16. I guess your Gradle project using a 
6.x wrapper (or maybe older). Gradle supports Java 16 form 7.0+.

Due to some Gradle limitations priming build can only use the JDK what the IDE 
is running on. In these situations the IDE has to Gradle 7.0+ for priming 
builds.

You can either upgrade your project to Gradle 7.x or use Java 15 for the IDE.

Yes it is true, the IDE should have display something when this setting is 
overruled by JDK-Gradle compatibility.

> Priming gradle build does not honor the gradle version set in 
> Options/Java/Gradle
> ---------------------------------------------------------------------------------
>
>                 Key: NETBEANS-5781
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5781
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>    Affects Versions: 12.4
>         Environment: Ubuntu 20.04, AdoptOpenjdk 16.0.1, Netbeans 12.4.  JDK 
> and Netbeans were installed by downloads, not by the Ubuntu package manager.
>  
>            Reporter: Guntram Blohm
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>              Labels: gradle, version
>         Attachments: Screenshot_2021-06-15_11-31-49.png
>
>
> When opening a gradle project, Netbeans does not honor the gradle version set 
> in Tools/Options/Java/Gradle, instead, it seems to always use gradle 7.0.0.
> I have an older project that uses deprecated features, so it needs gradle 
> 4.10.2 to load. Even when I set "Use Standard Gradle Version" to "4.10.2", 
> Netbeans uses gradle 7 to load the project, decides it can't, and makes the 
> project unusable. Pressing the "hammer" button (F11) to build the project 
> correctly uses Gradle 4.10.2 and builds the project.
> Attached screenshot shows, after "reload project", how Netbeans uses Gradle 
> 7.0 even with gradle 4.10.2 selected in Options.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-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