How to create a custom Docker image with JDK8, Maven and Gradle

Miguel Doctor Yuste
6 min readMay 23, 2019

Nowadays working on projects where different environments need to be handle (different technologies, languages, build automation system…) is a common situation for developers and engineers.

Recently I have been involved in a project that requires building 2 different types of java plugins. The first type was maven based projects, and the second one makes use of gradle. That situation forced us to maintain two different development environments, which provoked that classic "it worked in my machine" problem.

Miguel Doctor Yuste

Ph.D, AI Data Scientist, Software Engineer, Cloud Architect, Systems Engineer, happy father and happy husband :)