diff options
author | Roel Spilker <r.spilker@gmail.com> | 2021-04-01 23:32:20 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2021-04-01 23:32:20 +0200 |
commit | 72d9bfc412f1d6f661ce3798cd97ea8821cf25a2 (patch) | |
tree | c6b26fb1761bffd26feb064fe5f4c025cbc89dcd /docker | |
parent | baabbd27ee2de57a586fac420fb06308f6e749a9 (diff) | |
download | lombok-72d9bfc412f1d6f661ce3798cd97ea8821cf25a2.tar.gz lombok-72d9bfc412f1d6f661ce3798cd97ea8821cf25a2.tar.bz2 lombok-72d9bfc412f1d6f661ce3798cd97ea8821cf25a2.zip |
[docker] upgrade gradle (no jdk16 support yet)
Diffstat (limited to 'docker')
-rw-r--r-- | docker/gradle/Dockerfile | 6 | ||||
-rw-r--r-- | docker/gradle/readme.md | 13 | ||||
-rw-r--r-- | docker/provision/gradle/gradle-6.8.3.sh | 4 |
3 files changed, 14 insertions, 9 deletions
diff --git a/docker/gradle/Dockerfile b/docker/gradle/Dockerfile index de85ca6f..a607f928 100644 --- a/docker/gradle/Dockerfile +++ b/docker/gradle/Dockerfile @@ -1,4 +1,4 @@ -FROM ubuntu:18.04 as downloader
+FROM ubuntu:20.04 as downloader
ARG jdk=16
ADD provision/jdk/java-${jdk}.sh provision/jdk/java-${jdk}.sh
@@ -7,11 +7,11 @@ RUN provision/jdk/java-${jdk}.sh ARG lombokjar=lombok.jar
ADD https://projectlombok.org/downloads/${lombokjar} /lombok.jar
-ARG gradle=6.2.2
+ARG gradle=6.8.3
ADD provision/gradle/gradle-${gradle}.sh provision/gradle/gradle-${gradle}.sh
RUN provision/gradle/gradle-${gradle}.sh
-FROM ubuntu:18.04
+FROM ubuntu:20.04
COPY --from=downloader /opt/gradle/ /opt/gradle/
COPY --from=downloader /opt/jdk/ /opt/jdk/
diff --git a/docker/gradle/readme.md b/docker/gradle/readme.md index 71a7da8e..360dcf56 100644 --- a/docker/gradle/readme.md +++ b/docker/gradle/readme.md @@ -6,7 +6,8 @@ The gradle version to be used. Supported values: -- `6.2.2` (default) +- `6.8.3` (default) +- `6.2.2` - `6.0.1` - `5.6` - `5.1.1` @@ -19,21 +20,21 @@ The gradle version to be used. Supported values: (To be executed from the `<lombokhome>/docker` directory) ``` -docker build -t lombok-gradle-jdk13 -f gradle/Dockerfile . +docker build -t lombok-gradle-jdk16 -f gradle/Dockerfile . -docker build -t lombok-gradle-jdk13 --build-arg lombokjar=lombok-1.16.20.jar -f gradle/Dockerfile . +docker build -t lombok-gradle-jdk16 --build-arg lombokjar=lombok-1.18.20.jar -f gradle/Dockerfile . ``` ## Example run commands: ``` -docker run -it lombok-gradle-jdk13 +docker run -it lombok-gradle-jdk16 -docker run --rm -it -v /<lombokhome>/dist/lombok.jar:/workspace/classpath/lombok.jar lombok-gradle-jdk13 +docker run --rm -it -v /<lombokhome>/dist/lombok.jar:/workspace/classpath/lombok.jar lombok-gradle-jdk16 ``` ## Example container commands: ``` gradle assemble -```cd ... +``` diff --git a/docker/provision/gradle/gradle-6.8.3.sh b/docker/provision/gradle/gradle-6.8.3.sh new file mode 100644 index 00000000..62ab0f62 --- /dev/null +++ b/docker/provision/gradle/gradle-6.8.3.sh @@ -0,0 +1,4 @@ +apt-get update && apt-get install -y wget unzip +wget https://services.gradle.org/distributions/gradle-6.8.3-bin.zip -O gradle.zip +mkdir /opt/gradle && unzip -d /opt/gradle gradle.zip +mv /opt/gradle/gradle-6.8.3 /opt/gradle/gradle |