Gradle Support - plugin detailAllows opening of Gradle projects
[ You have to be logged in to be able to comment. ] User CommentsGradle Support
Thanks for sharing this post about Gradle Support. It's nice and awesome. If I'll this post to my friends they will surely like this. What is SEO
Posted by katherine250 on Apr 07, 2013
Re: Fantastic Plugin
Thank you. Loaded projects are cached because reloading projects might take quite a bit of time. So, if you adjust the buildscript and want NetBeans to know about the changes, you have to explicitly reload the project (right click on the project and reload). Regardless, if you run a custom task, it doesn't matter if NetBeans knows about that task. That is, Gradle will simply be asked to execute the requested task.
As for idea tasks, Gradle seems to add some of them regardless if you apply the "idea" plugin or not. By the way, NetBeans relies on the idea plugin as well, so adjusting things in the idea plugin should affect NetBeans (except if you make adjustment to the xmls of Idea).
Posted by attila.kelemen on Mar 22, 2013
Fantastic Plugin
I have been looking for a way to develop with Gradle from within an IDE with the ability to run all my tests and debug easily. This was lacking in IDEA and Eclipse would have been my last choice however this plugin is everything I need right now and I am a fan of NetBeans too :)
My only issue is that tasks removed from the build file seem to be cached or at least my old idea tasks do but I can live with that. Fantastic work thanks a lot.
Posted by -tp- on Mar 22, 2013
Re: wrong download
It is not the plugin storing the url but the project you attempt to load. That is, this is the URL specified for the Gradle wrapper (in "gradle/wrapper/gradle-wrapper.properties").
Anyway, I don't think that the URL is wrong because I have just tried it and seems to work (i.e., I can download the zip from a browser). Besides, this is the URL specified in Gradle itself: https://github.com/gradle/gradle/blob/master/gradle/wrapper/gradle-wrapper.properties Could it be a proxy error? I know from experience that the proxy settings in NetBeans must be properly set because it is somehow used by the Gradle Tooling API.
Posted by attila.kelemen on Mar 06, 2013
wrong download
Hello Attila and thanks for your reply, I manually downloaded gradle and by changing the setting I successfully run it!
The gradle zip in my home directory contained only this info: Moved Permanently The document has moved here. I suppose the plugin should be updated with the new url?
Posted by dusty on Mar 06, 2013
Re: Plugin unable to download gradle
I have never seen such issue but seems weird. What JDK do you use?
Regardless, you can fix this particular problem by specifying where you have Gradle installed in the global settings: Tools/Options/Miscellaneous/Gradle/Gradle Installation Directory. This way the plugin won't try to download Gradle. Other than this, what you can try is to delete the Gradle cache (~/.gradle), maybe the zip file got corrupted somehow.
Posted by attila.kelemen on Mar 05, 2013
Plugin unable to download gradle
I'm unable to open a project, I get this error:
Failed to load Gradle project: spring-social org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'http://services.gradle.org/distributions/gradle-1.4-bin.zip'. at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:110) at org.gradle.tooling.internal.consumer.loader.CachingToolingImplementationLoader.create(CachingToolingImplementationLoader.java:37) at org.gradle.tooling.internal.consumer.loader.SynchronizedToolingImplementationLoader.create(SynchronizedToolingImplementationLoader.java:42) at org.gradle.tooling.internal.consumer.connection.LazyConnection.onStartAction(LazyConnection.java:135) at org.gradle.tooling.internal.consumer.connection.LazyConnection.withConnection(LazyConnection.java:118) at org.gradle.tooling.internal.consumer.connection.LazyConnection.getModel(LazyConnection.java:108) at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConnection$2.run(ProgressLoggingConnection.java:67) at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConnection.run(ProgressLoggingConnection.java:81) at org.gradle.tooling.internal.consumer.connection.ProgressLoggingConnection.getModel(ProgressLoggingConnection.java:65) at org.gradle.tooling.internal.consumer.connection.LoggingInitializerConnection.getModel(LoggingInitializerConnection.java:53) at org.gradle.tooling.internal.consumer.async.DefaultAsyncConnection$2.run(DefaultAsyncConnection.java:61) at org.gradle.tooling.internal.consumer.async.DefaultAsyncConnection$3.run(DefaultAsyncConnection.java:79) at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.(ZipFile.java:214) at java.util.zip.ZipFile.(ZipFile.java:144) at java.util.zip.ZipFile.(ZipFile.java:158) at org.gradle.wrapper.Install.unzip(Install.java:148) at org.gradle.wrapper.Install.createDist(Install.java:65) at org.gradle.tooling.internal.consumer.DistributionFactory$ZippedDistribution.getToolingImplementationClasspath(DistributionFactory.java:106) ... 15 more Someone has some clues on how to fix it, even by hand?
Posted by dusty on Mar 05, 2013
Re: Re: Re: Great Plugin
Missing dependency issues would be a problem but I don't show the source folders because I don't know where they are at that time. That is, I load the project using the Tooling API of Gradle which tells me everything (where the source folders are, the dependencies, etc.) in a single method call and I have no control over it.
Posted by attila.kelemen on Nov 11, 2012
Re: Re: Great Plugin
"I don't know what you mean on "ability to edit/remove needs to be exposed", they can be edited and removed."
Sorry my bad I never spotted the button in the project properties dialog... Just going back to the issue of loading, and to give my two cents... As the project is loading, within the projects tab only the Dependencies folder and the (build/settings).gradle files are visible. meaning that when I open a gradle project I cannot get to my source/test files until gradle has finished loading. Is it possible to re-think the loading of a gradle project to allow the src/test folders to be visible, so that when a user opens a project they can immediately get to their code. Although if I understand it correctly if this was the case, netbeans would highlight missing dependency issues in the code until gradle has finished loading right? If so I think thats a reasonable, especially if those missing dependency issues are resolved in the netbeans editor as soon as the gradle project is fully loaded.
Posted by satory on Nov 10, 2012
Re: Great Plugin
Hi,
Thank you. I will try to answer your remarks.
Posted by attila.kelemen on Nov 10, 2012
Great Plugin
Hey this plugin is great, although I do have a few small issues.
I have a single project, but I notice that it takes netbeans a while to full finish loading it up when I open netbeans, where as other projects appear nearly instantaneously. An improved Project properties dialog is needed, with both core/existing netbeans java project properties pages kept, like general project information, declaring the actual paths of the Src and Test folders and even improving what actions are assigned to which gradle tasks. - Much like a maven project properties dialog shows. Custom tasks are a god send, but we need more control on them, the ability to edit/remove needs to be exposed, probably through an enhanced project properties dialog... Other than those issues that I have, I think this plugin is great.
Posted by satory on Nov 10, 2012
Re: Re: Unfortunatelly it doesn't work for me
No problem. I hope you will be able to successfully use the plugin.
Posted by attila.kelemen on Oct 24, 2012
Re: Re: Unfortunatelly it doesn't work for me
Sorry for all the fuss, turns out Bug 218373 is to blame. An attempt to install any other plugin or to update caused the installation to break down.
Managed to solve the problem by installing the latest stable release (7.2.1). Yet again sorry for the inconvenience and thank you for the prompt answer.
Posted by AndreiLED on Oct 24, 2012
Re: Unfortunatelly it doesn't work for me
I have seen this issue but I don't think it has anything to do with this plugin. That is, the plugin does not really do anything until you try to open a Gradle project.
I think it has to do something with NetBeans when installing updates through the update center and also installing a plugin. It might be due to a buggy dependency resolution. What I would do is first update NetBeans, then install the plugin (and don't install the plugin with updates from the update center). If you have stack traces, etc., it might be worth to report to the NetBeans dev. team. EDIT: I believe this is the same problem: http://netbeans.org/bugzilla/show_bug.cgi?id=178087 but reported to an earlier release. Since this occured to you while updating other components and added this plugin, I believe that it can be triggered by installing a new downloaded plugin along with updates from the update center. If you install this plugin after every update, there should be no errors (I'm using it with the latest updates).
Posted by attila.kelemen on Oct 24, 2012
Unfortunatelly it doesn't work for me
Not only it doesn't work for me, my NetBeans simply won't even start after the plugin installation.
Symptoms: 1) First during the installation it asks to install a bunch of other required plugins and then to restart the IDE. 2) During the restart NetBeans tells me that it can't enable a lot of plugins (77 total) because of unmet dependencies. And click on Disable plugins doesn't help at all - NetBeans would simply hang up on the loading splash screen and do nothing. Funny thing here is that mostly actual versions of plugins installed are higher then required by that bunch of new plugins, so why won't it work? After that I had to completely re-install NetBeans to be able event to start it. Any ideas what I may be doing wrong?
Posted by AndreiLED on Oct 24, 2012
|