netbeans-gradle-project icon indicating copy to clipboard operation
netbeans-gradle-project copied to clipboard

if the project has a unreachable repository the plugin hungs.

Open silverax opened this issue 8 years ago • 4 comments

using a unreachable url in the project repository. netbeans keep loading forever and the task can not be canceled.

silverax avatar Sep 05 '17 18:09 silverax

What do you mean by "using a unreachable url in the project repository"? Do you have such an url added in your build scripts? If so, then it is most likely a Gradle issue.

kelemen avatar Sep 05 '17 19:09 kelemen

repositories {
maven { url "http://ubuntu/public/maven/" } } ubuntu is a local server (down for the moment)

silverax avatar Sep 05 '17 19:09 silverax

Then I would think, that Gradle just takes a long time to timeout. The plugin just calls Gradle to resolve the configurations.

kelemen avatar Sep 05 '17 19:09 kelemen

As for cancellation: I have just checked the sources, and the plugin does not set the CancellationToken for Gradle. I can work on that, if it helps.

kelemen avatar Sep 05 '17 19:09 kelemen