Skip to content

Commit 680e83c

Browse files
authored
Switch to java 22 and enable preview features in runtime (#53)
* Update Dockerfile * Update TeamServer.java
1 parent 57ae83f commit 680e83c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY . .
55
RUN gradle clean :bot:build :plugin-paper:build --no-daemon
66

77
# We use a jammy image because we need some more stuff than alpine provides
8-
FROM eclipse-temurin:21-jammy as runtime
8+
FROM eclipse-temurin:22-jammy as runtime
99

1010
WORKDIR /app
1111
RUN apt update

bot/src/main/java/de/chojo/gamejam/server/TeamServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public boolean start() {
182182
command.add("-Dpluginjam.team.name=" + teamName());
183183
command.add("-Djavalin.port=" + apiPort);
184184
command.add("-Dcom.mojang.eula.agree=true");
185+
command.add("--enable-preview");
185186
command.add("-jar");
186187
command.add("server.jar");
187188
command.add("--max-players");

0 commit comments

Comments
 (0)