Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle vs Maven #30

Open
paulvi opened this issue Jan 17, 2017 · 0 comments
Open

Gradle vs Maven #30

paulvi opened this issue Jan 17, 2017 · 0 comments

Comments

@paulvi
Copy link
Contributor

paulvi commented Jan 17, 2017

http://www.gradle.org/ vs https://maven.apache.org/

Maven started in 2004 to address Ant drawbacks, starting from scratches.
Gradle started in 2014 as tool to build Groovy project, and adopting Maven default, supported ant, Ivy, then Android, then non JVM languages like C/C++
Latest 3.3 vs 3.3.9

Wikipedia is outdated https://en.wikipedia.org/wiki/Gradle vs https://en.wikipedia.org/wiki/Apache_Maven

Polyglot: Gradle Kotlin script .gradle.kts

wrapper is now also in Maven, check Spring Boot Initializer start.spring.io

Actually Gradle was started under SpringSource

When Google adopted Gradle for Android, that was a big break-though for Gradle (and also hit to Eclipse, when new Android Studio became IDEA CE-based)

Spring-framework is using Gradle, but Spring Boot is using Maven

If you want to do Spring development without no xml at all, then the Maven pom.xml is the last mile. Unless you go experimenting with Maven Polyglot.
The problem of Maven Polyglot: "too many languages" and "Who needs this?"

Recommendations

What to use?

If you use Maven, don't hurry to switch to Gradle.
If you still use Ant - you are dying, Gradle was before showing how it is easy to use Gradle over ant, but now deprecating and removing. (Would usage may be 1-5%).
So what to use?
If you have Android development, you may want to have common build tool - Gradle.
If you are having many many modules (with nexus server) Maven is better, but gradle is catching up in 3.x
Use Maven for Spring Boot (until Pivotal change default on it site)

Maven is declarative, straight forward to read. Gradle is more like development.

What to learn?

First Maven, then mostly Gradle. You can stay with Maven that is more stable, you may go with Gradle that is evolving quicker () and used with Android.

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant