Integrate Config Binding Service client
Reuse CBS concept in ONAP to fetch configurations from consul.
Issue-ID: NONRTRIC-79
Change-Id: Iff6d651c1140c4ff16eeac37f84d8b4578c43cfe
Signed-off-by: YongchaoWu <yongchao.wu@est.tech>
diff --git a/policy-agent/pom.xml b/policy-agent/pom.xml
index 875fb15..06036db 100644
--- a/policy-agent/pom.xml
+++ b/policy-agent/pom.xml
@@ -32,6 +32,13 @@
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
+ <repositories>
+ <repository>
+ <id>onap-releases</id>
+ <name>onap-releases</name>
+ <url>https://nexus.onap.org/content/repositories/releases/</url>
+ </repository>
+ </repositories>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
@@ -98,11 +105,27 @@
<artifactId>springfox-swagger-ui</artifactId>
<version>${springfox.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
+ <artifactId>cbs-client</artifactId>
+ <version>${sdk.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>io.projectreactor</groupId>
+ <artifactId>reactor-test</artifactId>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.junit.jupiter</groupId>
+ <artifactId>junit-jupiter-engine</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
<properties>
<java.version>11</java.version>
<springfox.version>2.8.0</springfox.version>
<immutable.version>2.7.1</immutable.version>
+ <sdk.version>1.1.6</sdk.version>
</properties>
<build>
<plugins>
@@ -136,6 +159,14 @@
mvn spotless:apply to rewrite source files use mvn spotless:check to validate
source files -->
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.17</version>
+ <configuration>
+ <skipTests>false</skipTests>
+ </configuration>
+ </plugin>
</plugins>
</build>
</project>