Is there a way to get the equivalent of Maven Dependency Graph but for Gradle projects in IntelliJ IDEA Ultimate?
They released that feature on 2019.2.
To view Gradle dependencies as a diagram, click on the Show Dependencies icon on the Gradle tool window toolbar or use the shortcut Alt+Shift+Ctrl+U on Linux and Windows / Alt+Shift+Cmd+U on macOS.
https://blog.jetbrains.com/idea/2019/06/intellij-idea-2019-2-eap6-gradle-dependencies-diagram-and-more/
May be very late to answer, but have you checked https://plugins.jetbrains.com/plugin/7150-gradle-view
Related
how to have gradle options menu on intellij idea generator?
While I saw Intellij Idea on YouTube, on average there is a gradle menu option in the generator section
Make sure you have the Gradle and Kotlin bundled plugins enabled.
This is probably a very silly question, but I cannot find the gradle tasks window, like with compile, clean, build, instrument etc.
Can anyone help me? Thanks
View -> Tool Windows -> Gradle
In my case the Gradle window was not in the Tool Windosws menu because the project was not linked with Gradle yet. IntelliJ eventually detected that the Gradle files in the project and suggested to link it.
After that (as mentioned by #RaGe) the Gradle window could be surfaced using:
View -> Tool Windows -> Gradle
Is there a way to visualize project dependencies for a gradle project in Intellij? For a maven project, if you right click in the pom.xml you get a Show dependencies option but there I don't see such an option for a gradle project.
Does this feature exist for gradle project?
I did a small search in IDEA and Google and looks like there is not way to see Gradle dependency but I have found the plugin "Gradle View" which does what you need
http://plugins.jetbrains.com/plugin/7150
You can open a ticket and maybe they will add a better Gradle support in IDEA 15
I have the full version of IDEA 12.1.6
I am trying to import the gradle project https://github.com/Synesso/jomsocial-automation-test
The import doesn't recognise the project as a gradle project. No dependencies are linked, the java profile is ignored and there is no jetgradle window.
In the IDE settings the only thing that matches a search for "gradle" is the gradle plugin, which is installed by default.
I think I need to configure the IDE to support gradle imports, but can't find what or where.
That is strange. Anyway, the Gradle support in IntelliJ 12 is very limited. You are better off with Gradle's idea plugin or IntelliJ 13 (EAP), which has much better Gradle support.
I'm working on multiple Gradle projects with internal and external dependencies, and so far I am happy that thanks to Gradle's dependency management I can modify a library project without affecting every application that uses the library.
When I need to modify a library project and test it using an application project that uses it, I need to do the following,
Modify the library project and commit to SCM
Trigger CI to build the library project and push it to my Gradle repository
Update the application project's build.properties to refer to the new version of library project
Iterate the above steps until everything works and there is no bug
So it became quite combersome now. Can I configure IntelliJ IDEA so that
All my Gradle projects are in one window, like the screenshot below, which is Twitter's Finagle imported using its pom.xml. Sadly IntelliJ's JetGradle plugin doesn't seem to understand Gradle subprojects.
When build.properties's dependencies are my subprojects, read dependency from local snapshot, otherwise download them from the Gradle repository
Thanks.
If you want to open all projects in a single IDEA window, you'll have to aggregate them into a multi-project build, at least until IDEA 13 hits the market. Before IDEA 13, it's better to use Gradle's IDEA integration. Once you have a multi-project build, all you need to do is to add allprojects { apply plugin: "idea" } to the root build script, run gradle (cleanIdea) idea, then open the generated IDEA project.
Currently in IntelliJ IDEA 2019.2 you can add the gradle subprojects like so
Open Gradle Tool Window via View > Tool Windows > Gradle menu
Click on "Link Gradle Project" button (the plus sign)
Select the build.gradle file corresponding to the subproject
Go to File > Project Structure > Modules > NameOfSubproject
Navigate to main/java and click on Mark as: Sources
Mark the main/resources as Resources
Restart IntelliJ IDEA
The sources of the subproject will be recognized by IntelliJ and you can use Navigate Class action for the classes in the subproject