diff options
author | Guangrong Fu <fu.guangrong@zte.com.cn> | 2023-10-30 20:08:16 +0800 |
---|---|---|
committer | Guangrong Fu <fu.guangrong@zte.com.cn> | 2023-10-30 12:12:20 +0000 |
commit | 084a40dc78e76177b688ac597eaf9c4d00daa158 (patch) | |
tree | 7b21a333bf615f107039a1bc27b7e53cbe9bd242 /engine-d | |
parent | 810f5b2fcc7eeb0d066c8ea44335d0a7ab5b857b (diff) |
Updated Direct Dependencies
Issue-ID: HOLMES-633
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Change-Id: Ibf6e1fd9c93c64bc22dc346d85df69a88f40976e
Diffstat (limited to 'engine-d')
7 files changed, 33 insertions, 19 deletions
diff --git a/engine-d/pom.xml b/engine-d/pom.xml index 1ff46dc..140ef94 100644 --- a/engine-d/pom.xml +++ b/engine-d/pom.xml @@ -67,11 +67,25 @@ <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> - <version>3.8.0</version> + <version>3.8.1</version> <configuration> - <source>8</source> - <target>8</target> - <release>11</release> + <source>17</source> + <target>17</target> + </configuration> + </plugin> + <plugin> + <artifactId>maven-surefire-plugin</artifactId> + <version>3.1.2</version> + <configuration> + <argLine> + --add-opens=java.base/java.lang=ALL-UNNAMED + --add-opens=java.base/java.net=ALL-UNNAMED + --add-opens=java.base/java.util=ALL-UNNAMED + --add-opens=java.base/java.util.concurrent=ALL-UNNAMED + --add-opens=java.base/java.util.stream=ALL-UNNAMED + --add-opens=java.base/java.io=ALL-UNNAMED + --add-opens=java.base/java.lang.reflect=ALL-UNNAMED + </argLine> </configuration> </plugin> <plugin> diff --git a/engine-d/src/main/java/org/onap/holmes/engine/Initializer.java b/engine-d/src/main/java/org/onap/holmes/engine/Initializer.java index 60869a1..850e961 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/Initializer.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/Initializer.java @@ -1,5 +1,5 @@ /** - * Copyright 2017-2022 ZTE Corporation. + * Copyright 2017-2023 ZTE Corporation. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,10 +17,10 @@ package org.onap.holmes.engine; import org.onap.holmes.common.exception.CorrelationException; +import org.onap.holmes.common.msb.entity.MicroServiceInfo; import org.onap.holmes.common.utils.CommonUtils; -import org.onap.holmes.common.utils.MsbRegister; -import org.onap.msb.sdk.discovery.entity.MicroServiceInfo; -import org.onap.msb.sdk.discovery.entity.Node; +import org.onap.holmes.common.msb.entity.Node; +import org.onap.holmes.common.msb.MsbRegister; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; diff --git a/engine-d/src/main/java/org/onap/holmes/engine/request/CompileRuleRequest.java b/engine-d/src/main/java/org/onap/holmes/engine/request/CompileRuleRequest.java index 1baa8ad..cbac482 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/request/CompileRuleRequest.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/request/CompileRuleRequest.java @@ -18,7 +18,7 @@ package org.onap.holmes.engine.request; import lombok.Getter; import lombok.Setter; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; @Getter @Setter diff --git a/engine-d/src/main/java/org/onap/holmes/engine/request/DeployRuleRequest.java b/engine-d/src/main/java/org/onap/holmes/engine/request/DeployRuleRequest.java index 3e1b6ca..a2ab1ae 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/request/DeployRuleRequest.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/request/DeployRuleRequest.java @@ -18,7 +18,7 @@ package org.onap.holmes.engine.request; import lombok.Getter; import lombok.Setter; -import javax.validation.constraints.NotNull; +import jakarta.validation.constraints.NotNull; @Getter @Setter diff --git a/engine-d/src/main/java/org/onap/holmes/engine/request/DmaapConfigRequest.java b/engine-d/src/main/java/org/onap/holmes/engine/request/DmaapConfigRequest.java index ede1d71..9968ee9 100644 --- a/engine-d/src/main/java/org/onap/holmes/engine/request/DmaapConfigRequest.java +++ b/engine-d/src/main/java/org/onap/holmes/engine/request/DmaapConfigRequest.java @@ -16,10 +16,10 @@ package org.onap.holmes.engine.request; +import jakarta.validation.constraints.NotNull; import lombok.Getter; import lombok.Setter; -import javax.validation.constraints.NotNull; @Getter @Setter diff --git a/engine-d/src/main/resources/logback-spring.xml b/engine-d/src/main/resources/logback-spring.xml index eda9c6b..f399c7a 100644 --- a/engine-d/src/main/resources/logback-spring.xml +++ b/engine-d/src/main/resources/logback-spring.xml @@ -9,7 +9,7 @@ <charset>UTF-8</charset> </encoder> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> - <level>debug</level> + <level>DEBUG</level> </filter> </appender> @@ -27,7 +27,7 @@ <charset>UTF-8</charset> </encoder> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> - <level>info</level> + <level>INFO</level> </filter> </appender> @@ -45,9 +45,9 @@ <charset>UTF-8</charset> </encoder> <filter class="ch.qos.logback.classic.filter.LevelFilter"> - <level>error</level> - <onMatch>deny</onMatch> - <onMismatch>accept</onMismatch> + <level>ERROR</level> + <onMatch>DENY</onMatch> + <onMismatch>ACCEPT</onMismatch> </filter> </appender> diff --git a/engine-d/src/test/java/org/onap/holmes/engine/InitializerTest.java b/engine-d/src/test/java/org/onap/holmes/engine/InitializerTest.java index 4dec23d..5ad7539 100644 --- a/engine-d/src/test/java/org/onap/holmes/engine/InitializerTest.java +++ b/engine-d/src/test/java/org/onap/holmes/engine/InitializerTest.java @@ -1,5 +1,5 @@ /** - * Copyright 2020-2022 ZTE Corporation. + * Copyright 2020-2023 ZTE Corporation. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at @@ -18,8 +18,8 @@ import org.easymock.EasyMock; import org.junit.Test; import org.junit.runner.RunWith; import org.onap.holmes.common.config.MicroServiceConfig; -import org.onap.holmes.common.utils.MsbRegister; -import org.onap.msb.sdk.discovery.entity.MicroServiceInfo; +import org.onap.holmes.common.msb.MsbRegister; +import org.onap.holmes.common.msb.entity.MicroServiceInfo; import org.powermock.api.easymock.PowerMock; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; |