From 9693ec51cf6526082f0ad0c3ad208d144cbbb163 Mon Sep 17 00:00:00 2001 From: egernug Date: Wed, 26 Jul 2023 10:36:15 +0100 Subject: Migrate CPS to Spring-boot 3.0 Issue-ID: CPS-1789 Signed-off-by: egernug Change-Id: I932fca8a50cedf2ae0604401c5e2b27896e4d449 --- cps-service/pom.xml | 11 +++++++++++ .../src/main/java/org/onap/cps/config/AsyncConfig.java | 2 +- .../org/onap/cps/notification/NotificationProperties.java | 2 +- .../java/org/onap/cps/notification/NotificationService.java | 2 +- .../main/java/org/onap/cps/spi/model/ConditionProperties.java | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) (limited to 'cps-service') diff --git a/cps-service/pom.xml b/cps-service/pom.xml index d4fe2e31aa..3f5d639896 100644 --- a/cps-service/pom.xml +++ b/cps-service/pom.xml @@ -111,6 +111,7 @@ org.springframework.boot spring-boot-starter-cache + 3.0.0 org.springframework.boot @@ -124,6 +125,12 @@ org.springframework.kafka spring-kafka + + org.springframework + spring-test + test + + org.codehaus.groovy @@ -170,5 +177,9 @@ aspectjrt test + + jakarta.validation + jakarta.validation-api + diff --git a/cps-service/src/main/java/org/onap/cps/config/AsyncConfig.java b/cps-service/src/main/java/org/onap/cps/config/AsyncConfig.java index 9327c53451..e0f8c97104 100644 --- a/cps-service/src/main/java/org/onap/cps/config/AsyncConfig.java +++ b/cps-service/src/main/java/org/onap/cps/config/AsyncConfig.java @@ -21,8 +21,8 @@ package org.onap.cps.config; +import jakarta.validation.constraints.Min; import java.util.concurrent.ThreadPoolExecutor; -import javax.validation.constraints.Min; import lombok.Setter; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/cps-service/src/main/java/org/onap/cps/notification/NotificationProperties.java b/cps-service/src/main/java/org/onap/cps/notification/NotificationProperties.java index 3776a93d94..b8a7144b3d 100644 --- a/cps-service/src/main/java/org/onap/cps/notification/NotificationProperties.java +++ b/cps-service/src/main/java/org/onap/cps/notification/NotificationProperties.java @@ -19,9 +19,9 @@ package org.onap.cps.notification; +import jakarta.validation.constraints.NotNull; import java.util.Collections; import java.util.Map; -import javax.validation.constraints.NotNull; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; diff --git a/cps-service/src/main/java/org/onap/cps/notification/NotificationService.java b/cps-service/src/main/java/org/onap/cps/notification/NotificationService.java index b9d40740e0..c29d042293 100644 --- a/cps-service/src/main/java/org/onap/cps/notification/NotificationService.java +++ b/cps-service/src/main/java/org/onap/cps/notification/NotificationService.java @@ -21,6 +21,7 @@ package org.onap.cps.notification; +import jakarta.annotation.PostConstruct; import java.time.OffsetDateTime; import java.util.Arrays; import java.util.Collections; @@ -29,7 +30,6 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.Future; import java.util.regex.Pattern; import java.util.stream.Collectors; -import javax.annotation.PostConstruct; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.onap.cps.api.CpsAdminService; diff --git a/cps-service/src/main/java/org/onap/cps/spi/model/ConditionProperties.java b/cps-service/src/main/java/org/onap/cps/spi/model/ConditionProperties.java index 4eee7db136..5f5e4bc4ae 100644 --- a/cps-service/src/main/java/org/onap/cps/spi/model/ConditionProperties.java +++ b/cps-service/src/main/java/org/onap/cps/spi/model/ConditionProperties.java @@ -22,10 +22,10 @@ package org.onap.cps.spi.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import jakarta.validation.Valid; import java.util.Collections; import java.util.List; import java.util.Map; -import javax.validation.Valid; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; -- cgit 1.2.3-korg