Skip to content

Commit a31a903

Browse files
committedMay 11, 2022
Use Java 11, fix #51
Signed-off-by: Julien Nioche <[email protected]>
1 parent e9774ae commit a31a903

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
 

‎Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM maven:3-jdk-8 AS build
1+
FROM maven:3-jdk-11 AS build
22

33
RUN useradd -m urlfrontier
44

@@ -18,7 +18,7 @@ RUN mvn clean package -DskipFormatCode=true
1818
RUN rm service/target/original-*.jar
1919
RUN cp service/target/*.jar urlfrontier-service.jar
2020

21-
FROM openjdk:8-jdk-slim
21+
FROM openjdk:11-jdk-slim
2222

2323
RUN useradd -m urlfrontier
2424

@@ -28,4 +28,4 @@ COPY --chown=urlfrontier --from=build /home/urlfrontier/urlfrontier-service.jar
2828

2929
USER urlfrontier
3030

31-
ENTRYPOINT ["java", "-Xmx2G", "-jar", "urlfrontier-service.jar"]
31+
ENTRYPOINT ["java", "-Xms2G", "-Xmx2G", "-XX:+UseG1GC", "-jar", "urlfrontier-service.jar"]

‎pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
<artifactId>maven-compiler-plugin</artifactId>
6363
<version>3.9.0</version>
6464
<configuration>
65-
<source>1.8</source>
66-
<target>1.8</target>
65+
<source>11</source>
66+
<target>11</target>
6767
</configuration>
6868
</plugin>
6969
<plugin>
@@ -84,7 +84,7 @@
8484
<plugin>
8585
<groupId>com.cosium.code</groupId>
8686
<artifactId>git-code-format-maven-plugin</artifactId>
87-
<version>2.7</version>
87+
<version>3.3</version>
8888
<executions>
8989
<!-- On commit, format the modified java files -->
9090
<execution>

0 commit comments

Comments
 (0)
Please sign in to comment.