[jira] [Comment Edited] (NETBEANS-5535) Netbeans 12.3 uses wrong Gradle wrapper

2021-05-17 Thread Alexander Shchelkunov (Jira)


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

Alexander Shchelkunov edited comment on NETBEANS-5535 at 5/17/21, 6:38 AM:
---

As a workaround, I replaced the gradle wrapper binaries and it started working.

 

Also there are gradle settings, which allow to hardcode gradle to use. I missed 
it somehow, sorry.
 !GradleSettings.png! 
 


was (Author: alexander shchelkunov):
As a workaround, I replaced the gradle wrapper binaries and it started working.

> Netbeans 12.3 uses wrong Gradle wrapper
> ---
>
> Key: NETBEANS-5535
> URL: https://issues.apache.org/jira/browse/NETBEANS-5535
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
> Environment: Windows 10
> Gradle 6.6
> Netbeans 12.3
>Reporter: Alexander Shchelkunov
>Assignee: Laszlo Kishalmi
>Priority: Major
> Attachments: GradleSettings.png
>
>
> 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:
> {code:java}
> * What went wrong:
> A problem occurred evaluating root project 'XXX'.
> > Plugin with id 'YYY' not found.
> {code}
> I can see that Netbeans is trying to execute the following command and it 
> fails:
> {code:java}
> cd ; .\gradlew.bat --configure-on-demand -x check build
> {code}
> 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\\.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!



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



[jira] [Comment Edited] (NETBEANS-5535) Netbeans 12.3 uses wrong Gradle wrapper

2021-05-04 Thread Alexander Shchelkunov (Jira)


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

Alexander Shchelkunov edited comment on NETBEANS-5535 at 5/4/21, 6:49 AM:
--

Hi [~lkishalmi]!

The URL is the following:
{code:java}
distributionUrl=https\://artifactory.mycompany.com/artifactory/gradle-distributions/com/gradle/distributions/gradle/Wrapper-6.6.0-SNAPSHOT/gradle-Wrapper-6.6.0-SNAPSHOT.zip{code}


was (Author: alexander shchelkunov):
The URL is the following:
{code}distributionUrl=https\://artifactory.mycompany.com/artifactory/gradle-distributions/com/gradle/distributions/gradle/Wrapper-6.6.0-SNAPSHOT/gradle-Wrapper-6.6.0-SNAPSHOT.zip{code}

> Netbeans 12.3 uses wrong Gradle wrapper
> ---
>
> Key: NETBEANS-5535
> URL: https://issues.apache.org/jira/browse/NETBEANS-5535
> Project: NetBeans
>  Issue Type: Bug
>  Components: projects - Gradle
>Affects Versions: 12.2
> Environment: Windows 10
> Gradle 6.6
> Netbeans 12.3
>Reporter: Alexander Shchelkunov
>Assignee: Laszlo Kishalmi
>Priority: Major
>
> 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:
> {code:java}
> * What went wrong:
> A problem occurred evaluating root project 'XXX'.
> > Plugin with id 'YYY' not found.
> {code}
> I can see that Netbeans is trying to execute the following command and it 
> fails:
> {code:java}
> cd ; .\gradlew.bat --configure-on-demand -x check build
> {code}
> 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\\.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!



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