Skip to content

makiftutuncu/dependency-finder

Repository files navigation

Dependency Finder

Table of Contents

  1. Introduction
  2. Development, Running and Testing
  3. Contributing
  4. License

Introduction

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 on B and C
  • B is a dependency and it depends on C and E

and so on. Based on dependency definitions above, transitive dependencies of A would be B, C, E, F, G and H.

Development, Running and Testing

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'

Contributing

All contributions are welcome. Please feel free to send a pull request. Thank you.

License

Dependency Finder is licensed with MIT License.

About

Interactive console application for reading dependencies from a file and finding transitive dependencies

Topics

Resources

License

Stars

Watchers

Forks

Languages