Skip to content

Commit

Permalink
Switch to java 22 and enable preview features in runtime (#53)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update TeamServer.java
  • Loading branch information
Goldmensch authored Aug 24, 2024
1 parent 57ae83f commit 680e83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY . .
RUN gradle clean :bot:build :plugin-paper:build --no-daemon

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

WORKDIR /app
RUN apt update
Expand Down
1 change: 1 addition & 0 deletions bot/src/main/java/de/chojo/gamejam/server/TeamServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public boolean start() {
command.add("-Dpluginjam.team.name=" + teamName());
command.add("-Djavalin.port=" + apiPort);
command.add("-Dcom.mojang.eula.agree=true");
command.add("--enable-preview");
command.add("-jar");
command.add("server.jar");
command.add("--max-players");
Expand Down

0 comments on commit 680e83c

Please sign in to comment.