ext {
problemVersion = '0.27.1'
logstashLogbackVersion = '7.2'
- embedMongoVersion = '3.2.8'
- embedMongoIntegrationVersion = '1.1.0-spring27x'
- springCloudWiremockVersion = '3.1.0'
+ embedMongoVersion = '4.7.0'
+ embedMongoIntegrationVersion = '4.7.0'
+ springCloudWiremockVersion = '4.0.3'
}
dependencies {
testImplementation 'io.rest-assured:rest-assured'
testImplementation "org.springframework.cloud:spring-cloud-contract-wiremock:$springCloudWiremockVersion"
testImplementation "de.flapdoodle.embed:de.flapdoodle.embed.mongo:$embedMongoVersion"
- testImplementation "de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring:$embedMongoIntegrationVersion"
+ testImplementation "de.flapdoodle.embed:de.flapdoodle.embed.mongo.spring30x:$embedMongoIntegrationVersion"
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
}
package org.onap.portal.prefs.configuration;
-import javax.validation.constraints.NotBlank;
-
import org.springframework.boot.context.properties.ConfigurationProperties;
-import org.springframework.boot.context.properties.ConstructorBinding;
+import jakarta.validation.constraints.NotBlank;
import lombok.Data;
@Data
-@ConstructorBinding
@ConfigurationProperties("portal-prefs")
public class PortalPrefsConfig {
*/
package org.onap.portal.prefs.controller;
-
-
-import javax.validation.Valid;
-
import org.onap.portal.prefs.exception.ProblemException;
import org.onap.portal.prefs.openapi.api.PreferencesApi;
import org.onap.portal.prefs.openapi.model.Preferences;
package org.onap.portal.prefs.util;
-import lombok.extern.slf4j.Slf4j;
+import java.net.URI;
+
import org.springframework.http.HttpMethod;
-import org.springframework.http.HttpStatus;
+import org.springframework.http.HttpStatusCode;
-import java.net.URI;
+import lombok.extern.slf4j.Slf4j;
@Slf4j
public class Logger {
log.info("Portal-prefs - request - X-Request-Id {} {} {}", xRequestId, methode, path);
}
- public static void responseLog(String xRequestId, HttpStatus code) {
- log.info("Portal-prefs - response - X-Request-Id {} {}", xRequestId, code);
+ public static void responseLog(String xRequestId, HttpStatusCode httpStatusCode) {
+ log.info("Portal-prefs - response - X-Request-Id {} {}", xRequestId, httpStatusCode);
}
public static void errorLog(String xRequestId, String msg, String id, String app) {
port: 9001
address: 0.0.0.0
+de:
+ flapdoodle:
+ mongodb:
+ embedded:
+ version: 5.0.15
+
spring:
- mongodb:
- embedded:
- version: 3.2.8
jackson:
serialization:
# needed for serializing objects of type object
}
dependencies {
- implementation 'org.openapitools:openapi-generator:6.6.0'
- implementation 'org.springframework.boot:spring-boot-starter-webflux:2.7.3'
+ implementation 'org.openapitools:openapi-generator:7.0.0-beta'
+ implementation 'org.springframework.boot:spring-boot-starter-webflux:3.1.2'
+ implementation 'jakarta.validation:jakarta.validation-api:3.0.2'
constraints {
implementation('io.swagger.core.v3:swagger-annotations:2.2.5') {
interfaceOnly: "true",
useTags: "true",
useOptional: "true",
- reactive: "true"
+ reactive: "true",
+ useSpringBoot3: "true"
]
generateApiTests = false
generateApiDocumentation = false
// https://docs.gradle.org/current/userguide/plugins.html#sec:plugin_version_management
plugins {
id 'io.spring.dependency-management' version '1.0.13.RELEASE'
- id 'org.springframework.boot' version '2.7.3'
+ id 'org.springframework.boot' version '3.1.2'
id 'org.sonarqube' version '3.4.0.2513'
id 'com.github.hierynomus.license' version '0.16.1'
id 'com.gorylenko.gradle-git-properties' version '2.4.1'
- id 'org.openapi.generator' version '6.6.0'
+ id 'org.openapi.generator' version '7.0.0-beta'
}
// https://docs.gradle.org/current/userguide/plugins.html#sec:custom_plugin_repositories
repositories {