diff --git a/examples/spring-dynatrace-oneagent/build.gradle b/examples/spring-dynatrace-oneagent/build.gradle index 75ecdb580c1..76947dca6b1 100644 --- a/examples/spring-dynatrace-oneagent/build.gradle +++ b/examples/spring-dynatrace-oneagent/build.gradle @@ -1,6 +1,6 @@ plugins { id 'java' - id 'org.springframework.boot' version '3.0.4' + id 'org.springframework.boot' version '3.4.0' id 'io.spring.dependency-management' version '1.1.0' } @@ -20,7 +20,7 @@ repositories { ext { versions = [ - commercetools: "17.3.0", + commercetools: "17.20.0", ] } diff --git a/examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.properties b/examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.properties index 774fae87671..81aa1c0448a 100644 --- a/examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.properties +++ b/examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/web/AppController.java b/examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/web/AppController.java index 477c9527a93..44147687a45 100644 --- a/examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/web/AppController.java +++ b/examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/web/AppController.java @@ -42,9 +42,9 @@ public String pop(Model model, HttpSession session) throws ExecutionException, I } @GetMapping("/cart") - public String cart(Model model, HttpSession session) { + public String cart(Model model, HttpSession session) throws ExecutionException, InterruptedException { final CompletableFuture cart = new CartRepository(apiRoot, session).meCart(); - model.addAttribute("cart", cart); + model.addAttribute("cart", cart.get()); return "mycart/index"; }