diff --git a/build.gradle b/build.gradle index 627aa024b04..d04a8307baa 100644 --- a/build.gradle +++ b/build.gradle @@ -202,7 +202,7 @@ allprojects { implementation("javax.servlet:javax.servlet-api:4.0.1") implementation("commons-configuration:commons-configuration:1.10") implementation("org.apache.commons:commons-configuration2:2.7") - implementation("org.hibernate:hibernate-validator:7.0.1.Final") + implementation("org.hibernate:hibernate-validator:6.2.0.Final") // testng also used in our 'source' code to support unit tests implementation("org.testng:testng:7.4.0") diff --git a/open-metadata-implementation/adapters/open-connectors/repository-services-connectors/open-metadata-collection-store-connectors/graph-repository-connector/pom.xml b/open-metadata-implementation/adapters/open-connectors/repository-services-connectors/open-metadata-collection-store-connectors/graph-repository-connector/pom.xml index e6b43657d6c..f6273084c65 100644 --- a/open-metadata-implementation/adapters/open-connectors/repository-services-connectors/open-metadata-collection-store-connectors/graph-repository-connector/pom.xml +++ b/open-metadata-implementation/adapters/open-connectors/repository-services-connectors/open-metadata-collection-store-connectors/graph-repository-connector/pom.xml @@ -131,6 +131,11 @@ snappy-java + + org.hibernate + hibernate-validator + + @@ -155,7 +160,10 @@ org.janusgraph:janusgraph-cql:* - joda-time:joda-time:* + joda-time:joda-time:* + + org.hibernate.validator:hibernate-validator:* + org.antlr:antlr-runtime:jar:* org.xerial.snappy:snappy-java:* diff --git a/open-metadata-implementation/server-chassis/server-chassis-spring/pom.xml b/open-metadata-implementation/server-chassis/server-chassis-spring/pom.xml index 7c8c2a2b670..603c89347a8 100644 --- a/open-metadata-implementation/server-chassis/server-chassis-spring/pom.xml +++ b/open-metadata-implementation/server-chassis/server-chassis-spring/pom.xml @@ -408,6 +408,11 @@ spring-boot-starter-web + + org.springframework.boot + spring-boot-starter-validation + + ch.qos.logback logback-classic @@ -496,6 +501,9 @@ org.springframework.boot:spring-boot-starter-web:* + org.springframework.boot:spring-boot-starter-validation:* + + org.springframework.boot:spring-boot-starter-security:* diff --git a/open-metadata-implementation/server-chassis/server-chassis-spring/src/main/java/org/odpi/openmetadata/serverchassis/springboot/OMAGServerPlatform.java b/open-metadata-implementation/server-chassis/server-chassis-spring/src/main/java/org/odpi/openmetadata/serverchassis/springboot/OMAGServerPlatform.java index 21198c73d58..929fa5c7e8f 100644 --- a/open-metadata-implementation/server-chassis/server-chassis-spring/src/main/java/org/odpi/openmetadata/serverchassis/springboot/OMAGServerPlatform.java +++ b/open-metadata-implementation/server-chassis/server-chassis-spring/src/main/java/org/odpi/openmetadata/serverchassis/springboot/OMAGServerPlatform.java @@ -20,7 +20,6 @@ import org.springframework.context.ApplicationEventPublisher; import org.springframework.context.ApplicationListener; import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.event.ContextClosedEvent; import org.springframework.context.event.ContextRefreshedEvent; @@ -32,8 +31,9 @@ import java.util.*; -@SpringBootApplication -@ComponentScan(basePackages = {"${scan.packages}"}) +@SpringBootApplication( + scanBasePackages = {"${scan.packages}"} +) @OpenAPIDefinition( info = @Info( title = "Egeria's Open Metadata and Governance (OMAG) Server Platform", diff --git a/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/pom.xml b/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/pom.xml index 95796b81893..257aa943b3b 100644 --- a/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/pom.xml +++ b/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/pom.xml @@ -36,6 +36,11 @@ spring-boot-starter-web + + org.springframework.boot + spring-boot-starter-validation + + org.springframework.boot spring-boot-starter-security @@ -369,7 +374,6 @@ org.odpi.egeria:*spring* javax.xml.bind:*jaxb* org.springframework.boot:*:* - org.springframework.cloud:*:* org.apache.tomcat.embed:tomcat-embed-core:* diff --git a/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/EgeriaUIPlatform.java b/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/EgeriaUIPlatform.java index e6490b475bb..a4135090ae5 100644 --- a/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/EgeriaUIPlatform.java +++ b/open-metadata-implementation/user-interfaces/ui-chassis/ui-chassis-spring/src/main/java/org/odpi/openmetadata/userinterface/uichassis/springboot/EgeriaUIPlatform.java @@ -26,8 +26,7 @@ import javax.annotation.PostConstruct; @SpringBootApplication( - scanBasePackages = {"${scan.packages}"}, - exclude={DataSourceAutoConfiguration.class} + scanBasePackages = {"${scan.packages}"} ) @EnableConfigurationProperties( { diff --git a/open-metadata-test/open-metadata-fvt/access-services-fvt/pom.xml b/open-metadata-test/open-metadata-fvt/access-services-fvt/pom.xml index 583fa9f4803..3e45394348f 100644 --- a/open-metadata-test/open-metadata-fvt/access-services-fvt/pom.xml +++ b/open-metadata-test/open-metadata-fvt/access-services-fvt/pom.xml @@ -27,13 +27,6 @@ access-services-fvt - - - org.odpi.egeria - graph-repository-connector - - - 2.10.1 3.3.1 @@ -2782,6 +2782,12 @@ ${spring-boot.version} + + org.springframework.boot + spring-boot-starter-validation + ${spring-boot.version} + + org.springframework.boot spring-boot-starter-test