Using Buildship eclipse plugin, if I try to add gradle nature to my existing java project, it tries to go to internet and because of firewalls, I get
Could not install Gradle distribution from ‘https://services.gradle.org/distributions/gradle-2.14.1-bin.zip’.
So, I want to use my local gradle installation. But I did not find a place to change when adding gradle nature to existing project using buildship plugin. Is it possible? Would appreciate any feedback.
As a workaround, I was able to successfully specify local gradle installation in Gradle(STS) preferences, convert to Gradle(STS) Project, and then import using Buildship Gradle,
Thanks! But it doesn’t seem to work. I updated distributionURL to following in graddle-wrapper.properties.
distributionUrl=file:/c:/gradle-2.14.1/gradle-2.14.1-all.zip
I think you placed the wrapper properties in the wrong directory and gave it the wrong name. It’s gradle/wrapper/gradle-wrapper.properties. You can run the gradle wrapper task to generate it for you.
It seems in the correct location. I ran graddle wrapper task from command prompt. gradle-wrapper.properties was created in C:\Users\my user name\gradle\wrapper. After updating distributionURL, ths contents looks like following