Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/jrolstad/dependency-analyzer

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jrolstad/dependency-analyzer

  • v0.0.0-20240311192045-08134089d3f3
  • Source
  • Go
  • Socket score

Version published
Created
Source

Dependency Analyzer

When building a Java project, there are many third party dependencies that used to enable functionality that would otherwise be difficult to build on your own. It can be difficult to determine all dependencies that a projecdt has and how they rely on each other. The dependency analyzer intends to assist in this problem.

How it works

The dependency analyzer is a cli tool that analyzes maven generated dot files and identifies all third party dependencies. To run, used the following steps:

  1. At the root of the Java project being analyzed generate the dependency data files by running:
mvn dependency:tree -DoutputType=dot -DoutputFile=dependencies.dot -Dverbose=true
  1. Once files are generated, cd to the cmd\cli directory and run the main.go application. Assuming the generated files from step 1 are in the data directory two levels up, a sample command is:
go run main.go --path ..\..\data\ --filePattern *.dot --includedParents com.oracle --excludedDependencies com.oracle,javax. --mode notreferenced
  1. The command will output the dependency names and versions requested

Requirements

  • golang 1.18 or higher

Components

Applications

NameLocationPurpose
Command Line Interfacecmd/cliCommand line tool is the primary interface for the analyzer

Libraries

NameLocationPurpose
coreinternal/coreExtensions to the native types in golang
modelsinternal/modelsData models / structs used in the components
orchestrationinternal/orchestrationThe main entry point for all exposed functionality. Contains business logic, processing, and flow implementations

License

This projects is made available under the MIT License.

FAQs

Package last updated on 11 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc