What is this?
The Gradle View IntelliJ IDEA plugin shows a split tree rollup of the dependencies for each Gradle configuration in use
by a project. Dependency wrangling isn't easy in a large Java project. This IntelliJ IDEA plugin was built to add a little more sanity
to the tedious task of analyzing dependencies by rolling up the entire dependency graph into a pair of more easily
digestible trees derived from a serialized version of Gradle's dependency graph. The
Dependency List provides a
lexicographically sorted set of all the dependencies for each configuration in your project and all of its sub-projects.
Dependency Hierarchy shows a nested view of each Gradle configuration in your project and all of its sub-projects.
Grey dependencies in the tree indicate it was included by a previous dependency that was added before (and can be safely
omitted if it is explicitly being included).
- Built on the Gradle Tooling API 3.5.1, but should work on most 1.x, 2.x, 3.x, and 4.x versions
- Visual highlighting to indicate dependencies in use and replacement versions
- Lexicographically sorted listing for all Gradle configurations
- Load any project's Gradle dependencies, not just the one currently open inside IntelliJ
- Toggle the showing of replaced dependencies
The latest version of the Gradle View plugin is available on the JetBrains Plugin Repository. The first time you interact with Gradle View, you may need to download the embedded version of Gradle 3.5.1 in case you don't already have a cached copy available on your workstation. This should be seamless, and the tool window title and log will indicate a download of this is in progress. You may also build and install the plugin from source (see below).
Building from source
The Gradle View plugin uses a Gradle-based build system. In the instructions
./gradlew is invoked from the root of the source tree and serves as
a cross-platform, self-contained bootstrap mechanism for the build. The prerequisites are
Git and JDK 1.7+ for using the Gradle Wrapper bootstrap.
You'll also need the IntelliJ IDEA SDK installed in your IntelliJ environment. See
Configuring IntelliJ IDEA SDK
check out sources
git clone git://github.com/rholder/gradle-view.git
add Gradle build variables
Create a custom
gradle.properties file in the root directory and add a tooling version to use, as in:
gradleToolingApiVersion=3.5.1 ideaPluginJdkName=IDEA IU-135.690
ideaPluginJdkName should be the version you have referenced in your IntelliJ IDE.
compile, test and build plugin distribution zip
./gradlew clean distPlugin
The Gradle View plugin is released under version 2.0 of the Apache License. See LICENSE file for more details.