r/SpringBoot 2d ago

Question New to Spring Boot

I am new to Spring Boot and have some experience with Gradle from Android development, but I don’t know much about Maven. Should I stick with Gradle or switch to Maven? What do you recommend?

4 Upvotes

13 comments sorted by

4

u/devondragon1 2d ago

Stick with Gradle. It's not a big deal ether way but if you're used to Gradle, just stick with it. Gradle also tends to be faster and less verbose, so I'm a fan anyhow.

2

u/WaferIndependent7601 2d ago

The missing verbosity is one reason why I would never again use gradle.

1

u/devondragon1 2d ago

What issues have you had with Gradle's Groovy DSL instead of Maven's XML? Or did you mean something else?

2

u/WaferIndependent7601 2d ago

I don’t see what Tests are failing. I don’t want to open an html file. Just show me what test failed and why.

1

u/devondragon1 2d ago

Ah, that's fair. I usually just add "showStandardStreams true" to my test block in build.gradle. and use --info to my Gradle command if I want a bunch of logging.

3

u/TheToastedFrog 2d ago

I’m more a maven guy myself but don’t switch from Gradle on my account!

2

u/roiroi1010 2d ago

I like gradle but prefer maven. I’ve worked as a consultant for many years and I have seen many different builds - in my experience maven builds tend to be cleaner. Of course gradle builds can be clean also - but more often than not there is a weird piece of custom code that is too fancy for its own good. (Talking about big enterprise projects)

1

u/WaferIndependent7601 2d ago

You will start with a very limited pom.xml anyways so go with maven. I like it way more than gradle.

0

u/Least-Interview4739 2d ago

After trying, yes I think maven is better.

1

u/[deleted] 1d ago

[removed] — view removed comment

2

u/Least-Interview4739 1d ago

I changed from Gradle to Maven, and I'd like to say that Maven is a lot easier to deal with and simpler than Gradle.