Skip to content

Commit 2dc2d49

Browse files
author
jj
committed
Update voovan jdk to 25
1 parent 454ea0c commit 2dc2d49

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

frameworks/Java/voovan/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<version>0.1</version>
77
<properties>
88
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
9-
<maven.compiler.source>11</maven.compiler.source>
10-
<maven.compiler.target>11</maven.compiler.target>
9+
<maven.compiler.source>17</maven.compiler.source>
10+
<maven.compiler.target>17</maven.compiler.target>
1111
<main.class>org.voovan.VoovanTFB</main.class>
1212
</properties>
1313
<dependencies>

frameworks/Java/voovan/voovan.dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM maven:3.6.1-jdk-11-slim as maven
1+
FROM maven:3-eclipse-temurin-24-alpine as maven
22
WORKDIR /voovan
33
COPY pom.xml pom.xml
44
COPY src src
55
COPY config/framework.properties config/framework.properties
66
RUN mvn package -q
77

8-
FROM openjdk:11.0.3-jdk-slim
8+
FROM openjdk:25-ea-slim-bullseye
99
WORKDIR /voovan
1010
COPY --from=maven /voovan/target/voovan-bench-0.1-jar-with-dependencies.jar app.jar
1111
COPY --from=maven /voovan/config/framework.properties config/framework.properties
@@ -24,5 +24,12 @@ CMD java -DCheckTimeout=false \
2424
-XX:+AlwaysPreTouch \
2525
-XX:-RestrictContended \
2626
-XX:+UseParallelGC -XX:+UseNUMA \
27-
-XX:+AggressiveOpts -XX:+UseBiasedLocking \
27+
--add-opens java.base/java.lang=ALL-UNNAMED \
28+
--add-opens java.base/java.util=ALL-UNNAMED \
29+
--add-opens java.base/java.io=ALL-UNNAMED \
30+
--add-opens java.base/java.nio=ALL-UNNAMED \
31+
--add-opens java.base/sun.nio.ch=ALL-UNNAMED \
32+
--add-opens java.base/java.security=ALL-UNNAMED \
33+
--add-opens java.base/java.util.concurrent=ALL-UNNAMED \
34+
--add-opens java.base/java.net=ALL-UNNAMED \
2835
-cp ./config:voovan.jar:app.jar org.voovan.VoovanTFB

0 commit comments

Comments
 (0)