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

Netbeans 12.3 uses wrong Gradle wrapper

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.2
    • None
    • projects - Gradle
    • None
    • Windows 10

      Gradle 6.6

      Netbeans 12.3

    Description

      Hello,

      I'm trying to open a project which uses a custom plugin available only through the Gradle wrapper and I'm getting the following error:

      * What went wrong:
      A problem occurred evaluating root project 'XXX'.
      > Plugin with id 'YYY' not found.
      

      I can see that Netbeans is trying to execute the following command and it fails:

      cd <project path>; .\gradlew.bat --configure-on-demand -x check build
      

      If I execute the same command from the command line, it works fine.
      Is it possible to make sure that Netbeans uses certain Gradle wrapper when open/build projects? It looks like it uses the wrong one: 'C:\Users\<user>\.gradle\wrapper\dists\gradle-6.7-bin\efvqh8uyq79v2n7rcncuhu9sv\gradle-6.7'. It should use the wrapper specified in gradle/wrapper/gradle-wrapper.properties file.

      Thanks in advance!

      Attachments

        1. GradleSettings.png
          69 kB
          Alexander Shchelkunov

        Activity

          People

            lkishalmi Laszlo Kishalmi
            Alexander Shchelkunov Alexander Shchelkunov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: