Upgrade to Java 25 #12
Binary file not shown.
@ -18,7 +18,7 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<java.version>24</java.version>
|
||||
<java.version>25</java.version>
|
||||
<springdoc.version>2.8.6</springdoc.version>
|
||||
</properties>
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ public class TestController {
|
||||
@RequestMapping
|
||||
public String helloWorld() throws InterruptedException, ExecutionException {
|
||||
// Pick the scope based on the desired behaviour
|
||||
try (var scope = new StructuredTaskScope.ShutdownOnFailure()) {
|
||||
try (var scope = StructuredTaskScope.open()) {
|
||||
Subtask<String> nameTask = scope.fork(() -> {
|
||||
String name = restClient.get()
|
||||
.uri("/test/name")
|
||||
@ -58,9 +58,6 @@ public class TestController {
|
||||
// Wait for all tasks to complete (either success or failure)
|
||||
scope.join();
|
||||
|
||||
// Error if any task failed (or check each individual subtask for partial responses)
|
||||
scope.throwIfFailed();
|
||||
|
||||
return "Hello, I am %s and my email is %s. My Daisy profile is: %s".formatted(
|
||||
nameTask.get(),
|
||||
emailTask.get(),
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM eclipse-temurin:24 AS build
|
||||
FROM eclipse-temurin:25 AS build
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
@ -17,7 +17,7 @@ RUN ./mvnw package \
|
||||
--fail-fast \
|
||||
-DskipTests
|
||||
|
||||
FROM eclipse-temurin:24 AS runtime
|
||||
FROM eclipse-temurin:25 AS runtime
|
||||
|
||||
WORKDIR /bff
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user