Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
vipin tomar
280 PointsWhat is the difference between these 3 words?
Hello Craig Dennis sir, I learned about the gradle from your workshop and maven from another workshop but I'm not able to understand the difference between these three words.
- Gradle
- Maven
- Ant
What's the difference why they all use to build java projects????
1 Answer
Steven Kelsey
12,524 PointsThey are all build tools for Java. Just different ways to accomplish building a java project. I believe ANT is a little old and not as popular these days, Maven is still very popular but has been around for a while (I'm currently using it at my company). Gradle I haven't used but I believe it is becoming more popular but not as big as Maven. You wouldn't use them together, you pick one or the other.
They are all used to understand the meta data about the project being built. Meta data = data about data. You ever hear the whole "it works on my machine" but not someone else? This is because your machine might have Java 8 while your coworker might only have Java 7 installed. Build tools like maven will use that meta data for when we export (Export, Build, Package are all the same) our Java projects into a Jar or War. That way we can make sure we built our project in the correct version so when we deploy our Jar onto another computer we can make sure it has the things needed installed on it correctly.