Return to Image List

gradle

gradle

Gradle is a build tool with a focus on build automation and support for multi-language development. If you are building, testing, publishing, and deploying software on any platform, Gradle offers a flexible model that can support the entire development lifecycle from compiling and packaging code to publishing web sites. Gradle has been designed to support build automation across multiple languages and platforms including Java, Scala, Android, C/C++, and Groovy, and is closely integrated with development tools and continuous integration servers including Eclipse, IntelliJ, and Jenkins.

See gradle.org for more information

This image is built by IBM to run on the IBM Z architecture and is not affiliated with any other community that provides a version of this image.


License

View license information here

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.


Versions

Use the pull string below for the version of this image you require.
7.4.2-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:cc2dab525ee361edb035d65c846214719b4f55bdc30158c303f92fb33ee8e9fb Vulnerability Report07-22-2025
7.5.0-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:3dac7ca1b5e39ba370142216d6896e44f6e47d63265b3c4e617ed499761f3fa8 Vulnerability Report07-22-2025
7.4.1-jdk17 docker pull icr.io/ibmz/gradle@sha256:2488d2ddbc48fdd510ccfa77b376ea0fe521ad9bebdb958a723a7173b128fedb Vulnerability Report07-22-2025
7.5.1-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:225878d6431d200f0f1a2c96c0ad5f3848272e6ccb5e6fc3752e7dfa2dd56e93 Vulnerability Report07-22-2025
8.0.2-jdk17-jammy docker pull icr.io/ibmz/gradle@sha256:1ecf9e11744879cd4619c68d2e98d97ac8aec97f20c30a0a8dce32f3f8f5f826 Vulnerability Report07-22-2025
Version Pull String Security (IBM Cloud) Created

Usage Notes

Create a Dockerfile in your build directory that uses the Gradle base image to run a gradle-task on your project by replacing {gradle-task} with the desired task name.

FROM icr.io/ibmz/gradle:[version]
WORKDIR /home/gradle/project
COPY . .
RUN chown -R gradle ../*
USER gradle
CMD [ "gradle", "{gradle-task}" ]

Alternatively you can use the base image in conjunction with a volume that holds the source of your project. Replace the {gradle-volume} and {gradle-task} with your volume and your desired gradle task.

docker run -it --name gradle-build -v {gradle_volume}:/home/gradle icr.io/ibmz/gradle:[version] gradle {gradle-task}