In every example I've seeing floating around the internet, they say to build an android library, I should apply the android-library plugin. When I use the AndroidStudio IDE wizard to set up a library, it applies the com.android.library plugin instead. Are these the same thing?
They're the same thing. The fully-qualified form is replacing the old style, which is deprecated. This will become important in the future because Gradleware is planning on implementing a global plugin repository to replace the need to specify repositories in a buildscript tag, and using fully-qualified names will help properly locate plugins in that repository.
Related
I am using Gradle 2.3 inside of IntelliJ IDEA 15 CE and Android Studio 1.3.2 and have always wondered what the situation is with gradle autocomplete / syntax highlighting etc.
When I look at a build.gradle file most of the code is dark gray and underlined, even keywords like task giving Cannot resolve symbol 'task'.
Coming from using Java in IDEA I find it disorientating and I would expect that types (like Javadoc) would be click through-able and auto-complete would offer me relevant stuff (like the methods and properties of Javadoc when inside the above task).
It would also be great if I could enumerate the source sets for this build file via autocomplete at the sourceSets., which I appreciate may need gradle to have executed the config build step to provide this info.
Am I missing something obvious or is Gradle tooling inside IDEA just not as good as the Java equivalents?
Thanks!
It could be Cucumber for Groovy plugin. As I know Gradle use some techniques and syntax of Groovy, so I tried to install some Groovy plugins and success at the first try.
Steps to install this plug in:
on MacOS: Preferences... -> Install JetBrains plugin... -> Cucumber
for Groovy.
I installed and used a UML plugin found here: UML Plugin for Netbeans 7.0?
Afterword, all of my .java code associated with the UML became black and white and un-editable. Although, I can write extra text it cannot be deleted. Running my project results in "Cannot execute - java executable not found".
I deleted the UML files associated with my projects and the code hasn't returned to normal.
Thanks.
Here is a picture:
This actually occurred to all java files.
Unlike Eclipse, different versions of NetBeans are so different that plugins made for younger versions (6) DO NOT work on later versions (8) by default. You can upgrade only subversions steps (digits after dot) without changing plugins. So you have used two pieces of SW that need not be compatible at all. You used a workaround to make to work the installation. And you can get absolutely any consequences, don't be surprised.
The history of the problem: there is no free UML plugin supporting NetBeans NOW. There was one, of Visual Paradigm, for versions to 6. But it's later variants are not free anymore and they are differently organized. If you want to use the modern version of the plugin, prepare to pay. It is very probable, that the free plugin doesn't work on NetBeans 8 by purpose.
You can try a new different plugin http://plugins.netbeans.org/plugin/49069/plantuml#v2590 of another author. It seems more simple, but at least it won't destroy your IDE. And now you have to save the project, reinstall NetBEans and import the project again.
From version 5.0 onwards, ReSharper offers a "Go To Related Files" navigation which offers a list of files that R# thinks are related to the file currently being edited: for example, base types, derived types, .designer.cs to and from the relevant .cs, and so on.
I have looked in the R# Options and also online, but have not been able to find out:
Is there a way to add files to this list, either within R# natively or by an already-existing plug-in?
(My motivation is to be able to navigate at coding time between files containing classes that are connected by a run-time-only convention-over-configuration, er, convention)
I don't know about existing plugins, but this feature is extendable.
You need to implement IRelatedFilesProvider interface in your plugin and mark it by RelatedFilesProvider attribute. As far as I know, NHibernate plugin do it for analogous task.
I'm in the process of upgrading a project to Groovy v1.6. When I installed IntelliJ, my GROOVY_HOME environment variable was pointing to Groovy v1.5.7, but now that I've changed GROOVY_HOME to point to v1.6, it's not clear whether IntelliJ is also using the more recent version.
How can I check which version of Groovy IntelliJ is using?
I believe you want to use the File -> Project Structure menu item. Then look at your Libraries and Facets (expand for Groovy) options.
Use "Add Framework Support":
Right click on your module and choose "Add Framework Support...". There you can add/change the groovy version
http://blogs.jetbrains.com/idea/2009/09/groovy-related-configuration-changes/
Found this old thread looking for a similar thing, but ended up figuring it out myself.
In my case, the project was boostrapped with Gradle. I didn't have a standalone Groovy version installed on my machine.
Open Tools -> Groovy Console..., and type pretty much any command and run it. It showed me the path to Gradle cache, which included Groovy version, near the top of the new window:
.../.gradle/caches/modules-2/files-2.1/org.codehaus.groovy/groovy-all/2.4.12/...
Also check build.gradle as it may have some hints as to which version the project uses.
In Resharper, if you ctrl-click the name of a class to naviate to its definition and that has a designer fie, Resharper will ask if I want to go to the X.cs or X.Designer.cs because the class is partial.
Does anyone know how to disable this annoyance so that it just goes to X.cs and ignores designer files?
A workaround I use is Ctrl-Shift-N (ReSharper classic bindings) or Ctrl-T (Visual Studio bindings) and start typing the class name. If you have your classes in files with the same name, you'll then be able to choose the correct one from the dropdown list.
This is a good question. Whenever I have a question like this, I file a suggestion at the ReSharper JIRA site. I'd recommend you do the same.
http://www.jetbrains.net/jira/browse/RSRP
I don't believe you can do what you want at the moment, even with the latest nightly build.
your best bet is to download the nightly build
i have no idea if they addressed this, although i think this is a feature, not an issue.
Nightly Builds