From 9e67df88b7c9775ad7aa869a6b724adbfe01a176 Mon Sep 17 00:00:00 2001 From: Joshua Sprey Date: Thu, 15 Apr 2021 12:30:14 +0200 Subject: [PATCH] [#59] Update README.md --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 3f8d582..db3a497 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ Jenkins Pipeline Shared library, that contains additional features for Git, Mave - [Deploying sites](#deploying-sites) - [Passing additional arguments](#passing-additional-arguments) - [Maven Utilities](#maven-utilities) +- [Gradle](#gradle) + - [Gradle Wrapper in Docker](#gradle-wrapper-in-docker) - [Git](#git) - [Credentials](#credentials) - [Git Utilities](#git-utilities) @@ -443,14 +445,12 @@ See [Maven](src/com/cloudogu/ces/cesbuildlib/MavenInDocker.groovy) # Gradle -## Gradle in Docker +## Gradle Wrapper in Docker -Run gradle in a docker container. This can be helpful, when +It's also possible to use a GradleWrapper in a Docker Container. Here, the Docker container is responsible for +providing the JDK. -* constant ports are bound during the build that cause port conflicts in concurrent builds. For example, when running - integration tests, unit tests that use infrastructure that binds to ports or -* one maven repo per builds is required For example when concurrent builds of multi module project install the same - snapshot versions. +See [GradleWrapperInDocker](src/com/cloudogu/ces/cesbuildlib/GradleWrapperInDocker.groovy) Example: ```groovy @@ -462,6 +462,9 @@ stage('Build') { } ``` +Since Oracle's announcement of shorter free JDK support, plenty of JDK images have appeared on public container image +registries, where `adoptopenjdk` is just one option. The choice is yours. + # Git An extension to the `git` step, that provides an API for some commonly used git commands and utilities.