Best practice Gradle and Docker


I’m still pretty new to Gradle and over the past months I’ve learned a lot about it.
Currently I’m using GitLab and experimenting / learning its CI/CD pipeline and and many more things. I’m at the point where I’d like to create Docker images during my build process.

I was reading a lot online about that topic and found basically the two solutions

  1. GitLab CI/CD
  2. Gradle Docker Plugins (e.g. palantir)

I can see pros and cons for both solutions but I’d like to hear some other opinions and experiences from other users.

Would you please share your experience and maybe some food for thought with me?