Skip to content

Commit

Permalink
java23
Browse files Browse the repository at this point in the history
  • Loading branch information
SentryMan committed Sep 27, 2024
1 parent eb93836 commit 0afc7db
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
uses: oracle-actions/setup-java@v1
with:
java-version: ${{ matrix.java_version }}
distribution: 'corretto'
website: jdk.java.net
release: GA
- name: Maven cache
uses: actions/cache@v4
env:
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ jobs:
uses: actions/checkout@v2

- name: Setup Java
uses: actions/setup-java@v1
uses: oracle-actions/setup-java@v1
with:
java-version: "22"
java-package: jdk
architecture: x64
website: jdk.java.net
release: GA

- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM amazoncorretto:22-alpine-jdk as jreBuilder
FROM amazoncorretto:23-alpine-jdk as jreBuilder

RUN apk add binutils
RUN jlink \
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<name>MangaBackend</name>
<description>RSocket API for Manga-Spring Site</description>
<properties>
<java.version>22</java.version>
<java.version>23</java.version>
<maven.compiler.proc>full</maven.compiler.proc>
<avaje.inject.version>9.10</avaje.inject.version>
<mainClass>com.mangasite.MangaBackendApplication</mainClass>
<start-class>com.mangasite.MangaBackendApplication</start-class>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.mangasite.domain.Manga;
import com.mangasite.services.MangaService;
import com.mongodb.MongoTimeoutException;

import io.rsocket.exceptions.CustomRSocketException;
import jakarta.inject.Singleton;
Expand All @@ -24,7 +25,7 @@ public RSocketMangaController(MangaService service) {

@MessageMapping("get-mangas")
public Flux<Manga> getAll() {
return service.findAll();
return service.findAll().doOnError(MongoTimeoutException.class, e -> System.exit(0));
}

@MessageMapping("get-manga-{id}")
Expand Down

0 comments on commit 0afc7db

Please sign in to comment.