r/javahelp • • Nov 23 '21

Codeless Does java have a package manager?

I have been developing test automation projects on C# and Python for a while. I am using NuGet/PiP to install dependencies such as Selenium.

I will be switching to another company and they use Java stack. I am trying to understand how java environment works.

What is the easiest way to install dependencies on Java?

Are there any easy to use package managers for java that I can use?

25 Upvotes

12 comments sorted by

View all comments

44

u/_Atomfinger_ Tech Lead Nov 23 '21

Maven or Gradle.

3

u/wheezymustafa Nov 23 '21

This is the correct answer. Maven can be a little cumbersome and clunky but is widely used by many organizations and there’s a shit ton of documentation.

I haven’t seen gradle* used as much in a professional setting but it seems a little less verbose than maven. They both achieve the same outcome though.

13

u/edubkn Nov 24 '21

Maven can be a little cumbersome and clunky

No, Gradle can be that. Maven is much more straightforward and easy to understand. It's just that it's xml.

4

u/msx Nov 24 '21

right? it gets so much undeserved hate. Gradle is much worst imho, ok it can do a little more but it will make you pay in tears for it. I don't even know how it gained so much popularity.