summaryrefslogtreecommitdiffstats
path: root/dmi-stub/dmi-plugin-demo-and-csit-stub-app
diff options
context:
space:
mode:
authorsourabh_sourabh <sourabh.sourabh@est.tech>2024-11-12 13:12:02 +0000
committersourabh_sourabh <sourabh.sourabh@est.tech>2024-11-18 11:34:37 +0000
commit436a8dc7b4241b685d3f483a5d64b9f4b2000cb5 (patch)
treec962de7a01fedd24b968bff1c3d78e40a02c08ca /dmi-stub/dmi-plugin-demo-and-csit-stub-app
parent6c877ba9d5e1dfde569593ed88652b93b10ba4a6 (diff)
Fixed the java code checkstyle configuration and jacoco report
- Removed oParent dependency. - pulled cps checkstyle and applied for all dmi modules for code style check and copyright. - Ignored checkstyle folder for to be commited. - Fixed java code styles. - Added missing plugins and configurations for jacoco report. - Configured deply plugin and related onap properties. - Temporarily disabled CSIT. Issue-ID: CPS-2471 Change-Id: I5a26c2a156b93c3e58c5c42814f1dff85831d4df Signed-off-by: sourabh_sourabh <sourabh.sourabh@est.tech>
Diffstat (limited to 'dmi-stub/dmi-plugin-demo-and-csit-stub-app')
-rw-r--r--dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml68
1 files changed, 68 insertions, 0 deletions
diff --git a/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml b/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml
index 4da597ba..830736b3 100644
--- a/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml
+++ b/dmi-stub/dmi-plugin-demo-and-csit-stub-app/pom.xml
@@ -19,6 +19,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
+
<parent>
<groupId>org.onap.cps</groupId>
<artifactId>dmi-plugin-demo-and-csit-stub</artifactId>
@@ -27,6 +28,10 @@
<artifactId>dmi-plugin-demo-and-csit-stub-app</artifactId>
+ <properties>
+ <app>org.onap.cps.ncmp.dmi.rest.stub.DmiDemoApplication</app>
+ </properties>
+
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
@@ -58,4 +63,67 @@
</exclusions>
</dependency>
</dependencies>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>com.google.cloud.tools</groupId>
+ <artifactId>jib-maven-plugin</artifactId>
+ <configuration>
+ <container>
+ <mainClass>${app}</mainClass>
+ <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
+ </container>
+ <from>
+ <image>${base.image}</image>
+ </from>
+ <to>
+ <tags>
+ <tag>latest</tag>
+ </tags>
+ <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
+ </to>
+ </configuration>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <id>build</id>
+ <goals>
+ <goal>dockerBuild</goal>
+ </goals>
+ </execution>
+ <execution>
+ <phase>deploy</phase>
+ <id>buildAndPush</id>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
+ <profiles>
+ <profile>
+ <id>docker</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <properties>
+ <image.name>dmi-plugin-demo-and-csit-stub</image.name>
+ </properties>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.google.cloud.tools</groupId>
+ <artifactId>jib-maven-plugin</artifactId>
+ <version>3.3.2</version>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project> \ No newline at end of file