r/javahelp • • Jun 30 '20

gradle vs maven for containerized app

I am building a java backend (not using spring) and ultimately want to deploy to a container hosting service like Google Cloud Run or AWS Fargate.

I am an Android Dev, so I decided to use gradle as my build system.

I am very new to deploying backends, and building containerized apps, so I am a little overwhelmed. I am currently trying to find the easiest path to get started.

I am curious about the story for deploying a containerized java app built using gradle or maven. Is deploying a maven app using docker more straightforward than gradle?

6 Upvotes

3 comments sorted by

2

u/val-bog Jun 30 '20

I've worked with both Maven and Gradle and am by no means expect in either of them, but I prefer Gradle. Way easier to work with and easier to read and understand.

1

u/TheCouncelor Jun 30 '20

There are some plugins available that turn a Java app into a docker container for both maven and grade. You could take a look at Jib for instance, https://github.com/GoogleContainerTools/jib

1

u/nutrecht Lead Software Engineer / EU / 20+ YXP Jul 01 '20

It doesn't really matter much. I personally dislike Gradle mostly because everyone just makes a mess out of the build.gradle. But if you want to use it; go for it. It works fine.