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