klaus7 / gradle-dependencies-viewer

A simple web UI to analyze dependencies for your project based on the text data generated from "gradle dependencies" command.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle dependencies viewer (tool)

A simple web UI to analyze dependencies for your project based on the text data generated from gradle dependencies command. Gradle dependencies viewer (tool) screenshot

Build Status - Master Linux Windows Apache 2

Purpose

Since there is still no good support for Gradle dependencies view in IntelliJ IDEA (at least not good as for Maven is) and it's really difficult to browse (especially for larger projects with tens of listed dependencies) we decided to create this very simple tool. This tool helps us to solve such common dependency-hell problem like "Where this dependency/artifact came from?" or "Which dependencies are coming with this artifact?".

Using dependencies viewer

  1. Run command gradle dependencies > dep.txt inside of your project directory.`
  2. Drag&Drop dep.txt file into input area. File will be automatically uploaded and parsed. Alternativaly you can copy&paste the output of gradle dependencies command into the input area.
  3. Browse dependencies tree in the left panel and/or use search input box to find artifact you need to explore
  4. If you want to generate gradle code to exclude some artifact, press right mouse button to view context menu and select Exclude artifact.

Working demo

You can try to use it here (it's located on Heroku, sometimes it requires more time to load, please be patient)

Launching app locally

Requirements:

  • JDK 1.8

Running from the latest release

  1. Download current release
  2. Extract zip file and use /bin/gradle-dependencies-viewer.bat (Win) or /bin/gradle-dependencies-viewer (Linux)

OR

Running from sources

  1. Build binaries gradle build or gradlew.bat build or
  2. Extract build/distributions/gradle-dependencies-viewer-x.x.x.zip (or .tar on Linux)
  3. Run script /bin/gradle-dependencies-viewer.bat (Win) or /bin/gradle-dependencies-viewer (Linux)
  4. OR Run single fat jar java -jar gradle-dependencies-viewer-1.0.0.jar --server.port=8090
  • File gradle-dependencies-viewer-x.x.x.jar is located in build/libs.
  1. Open http://localhost:8090/ in your web browser.
  • Default port value has been set to 8090.

Project programming info

The project is using Gradle 3.x to build. The project is based on Spring Boot using Thymeleaf template engine.

License

Apache 2 License.

Contact

Author&Maintainer: Ladislav Vitasek aka Vity - vitasek/@/avast.com

About

A simple web UI to analyze dependencies for your project based on the text data generated from "gradle dependencies" command.

License:Apache License 2.0


Languages

Language:JavaScript 60.6%Language:Java 23.0%Language:HTML 13.7%Language:CSS 2.7%