Search code examples
javapackaging

Is there a way to auto-create a file with dependencies in Java and auto-install them?


The idea of keeping all open source libraries in my repo doesn't sound to me as a good practice. Any ideas? I do know this can easily be done in Python using virtual environment, is there there such a way in Java?


Solution

  • There are some build tools which can manage dependencies:

    • maven (xml configuration)
    • gradle (groovy configuration)
    • apache ivy (xml configuration, used by ant)