Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5781

Priming gradle build does not honor the gradle version set in Options/Java/Gradle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 12.4
    • None
    • projects - Gradle
    • Ubuntu 20.04, AdoptOpenjdk 16.0.1, Netbeans 12.4.  JDK and Netbeans were installed by downloads, not by the Ubuntu package manager.

       

    Description

      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.

       

      Attachments

        1. Screenshot_2021-06-15_11-31-49.png
          117 kB
          Guntram Blohm

        Issue Links

          Activity

            People

              lkishalmi Laszlo Kishalmi
              giselbaer Guntram Blohm
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: