Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90888c7

Browse files
committed
Using Maven 3.8.1
1 parent f1274ca commit 90888c7

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG JDK_VERSION=16
2-
FROM maven:3.6.3-openjdk-$JDK_VERSION-slim
2+
FROM maven:3.8.1-openjdk-$JDK_VERSION-slim
33

44
# Without this, the ARG isn't available after the FROM
55
ARG JDK_VERSION
@@ -8,7 +8,7 @@ ADD . /javaupgrades
88
WORKDIR /javaupgrades
99

1010
# Cache dependencies
11-
RUN mvn dependency:go-offline --fail-at-end -Dmaven.compiler.release=$JDK_VERSION
11+
RUN mvn test dependency:go-offline --fail-at-end -Dmaven.compiler.release=$JDK_VERSION
1212

1313
# Used to force Docker to always run the commands below the ARG instead of using the cache
1414
ARG DISABLE_CACHE

DockerfileJava8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3.6.3-openjdk-8-slim
1+
FROM maven:3.8.1-openjdk-8-slim
22

33
ADD . /javaupgrades
44
WORKDIR /javaupgrades
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class Bla {
2+
public String getTestvalue() {
3+
return "bla";
4+
}
5+
}

0 commit comments

Comments
 (0)