Dependency Finder is an interactive console application for reading a file with dependency declarations and finding transitive dependencies.
Dependency definitions file should be in following format:
A B C
B C E
C G
D A F
E F
F H
Each line represents a dependency definition. For example:
A
is a dependency and it depends onB
andC
B
is a dependency and it depends onC
andE
and so on. Based on dependency definitions above, transitive dependencies of A
would be B
, C
, E
, F
, G
and H
.
Application is built with Gradle. So, standard Gradle tasks like clean
, compile
, run
and test
can be used. If you don't have Gradle installed, you can use Gradle wrapper by replacing gradle
command with ./gradlew
in project root directory.
To run the application locally:
gradle run --console=plain --args '/path/to/dependencies.txt'
To run all tests:
gradle test
To run specific test(s):
gradle test --tests 'patternForTests'
All contributions are welcome. Please feel free to send a pull request. Thank you.
Dependency Finder is licensed with MIT License.