Merge "Patch # 1: Data operation response event (NCMP → Client App) to comply with...
[cps.git] / cps-ncmp-rest-stub / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (C) 2022 Bell Canada
5   ================================================================================
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17
18   SPDX-License-Identifier: Apache-2.0
19   ============LICENSE_END=========================================================
20 -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.onap.cps</groupId>
28         <artifactId>cps-parent</artifactId>
29         <version>3.3.3-SNAPSHOT</version>
30         <relativePath>../cps-parent/pom.xml</relativePath>
31     </parent>
32
33     <artifactId>cps-ncmp-rest-stub</artifactId>
34     <properties>
35         <app>org.onap.cps.ncmp.rest.stub.Application</app>
36         <java.version>11</java.version>
37         <jacoco.reportDirectory.aggregate>${project.reporting.outputDirectory}/jacoco-aggregate</jacoco.reportDirectory.aggregate>
38         <sonar.coverage.jacoco.xmlReportPaths>
39             ../jacoco-report/target/site/jacoco-aggregate/jacoco.xml
40         </sonar.coverage.jacoco.xmlReportPaths>
41         <groovy.version>3.0.8</groovy.version>
42         <nexusproxy>https://nexus.onap.org</nexusproxy>
43         <releaseNexusPath>/content/repositories/releases/</releaseNexusPath>
44         <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
45         <sonar.skip>true</sonar.skip>
46         <mapstruct.version>1.4.2.Final</mapstruct.version>
47     </properties>
48
49     <dependencies>
50         <dependency>
51             <groupId>io.swagger.core.v3</groupId>
52             <artifactId>swagger-annotations</artifactId>
53             <version>2.1.4</version>
54         </dependency>
55         <dependency>
56             <groupId>org.springframework.boot</groupId>
57             <artifactId>spring-boot-starter-web</artifactId>
58             <exclusions>
59                 <exclusion>
60                     <groupId>org.springframework.boot</groupId>
61                     <artifactId>spring-boot-starter-tomcat</artifactId>
62                 </exclusion>
63             </exclusions>
64         </dependency>
65         <dependency>
66             <groupId>org.springframework.boot</groupId>
67             <artifactId>spring-boot-starter-validation</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-jetty</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.mapstruct</groupId>
75             <artifactId>mapstruct</artifactId>
76             <version>${mapstruct.version}</version>
77         </dependency>
78         <dependency>
79             <groupId>org.mapstruct</groupId>
80             <artifactId>mapstruct-processor</artifactId>
81             <version>${mapstruct.version}</version>
82         </dependency>
83         <!-- T E S T   D E P E N D E N C I E S -->
84         <dependency>
85             <groupId>org.projectlombok</groupId>
86             <artifactId>lombok</artifactId>
87         </dependency>
88         <dependency>
89             <!-- The SpotBugs Maven plugin uses SLF4J 1.8 beta 2 -->
90             <groupId>org.slf4j</groupId>
91             <artifactId>slf4j-simple</artifactId>
92             <version>1.8.0-beta4</version>
93         </dependency>
94         <dependency>
95             <groupId>cglib</groupId>
96             <artifactId>cglib-nodep</artifactId>
97             <scope>test</scope>
98             <version>3.1</version>
99         </dependency>
100         <dependency>
101             <groupId>com.google.code.gson</groupId>
102             <artifactId>gson</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.onap.cps</groupId>
106             <artifactId>cps-ncmp-rest</artifactId>
107             <optional>true</optional>
108         </dependency>
109     </dependencies>
110
111     <build>
112         <plugins>
113             <!-- Swagger code generation. -->
114             <plugin>
115                 <groupId>org.apache.maven.plugins</groupId>
116                 <artifactId>maven-compiler-plugin</artifactId>
117                 <version>2.3.2</version>
118                 <configuration>
119                     <source>${java.version}</source>
120                     <target>${java.version}</target>
121                 </configuration>
122             </plugin>
123
124             <plugin>
125                 <groupId>org.apache.maven.plugins</groupId>
126                 <artifactId>maven-shade-plugin</artifactId>
127                 <dependencies>
128                     <dependency>
129                         <groupId>org.springframework.boot</groupId>
130                         <artifactId>spring-boot-maven-plugin</artifactId>
131                         <version>1.2.7.RELEASE</version>
132                     </dependency>
133                 </dependencies>
134                 <configuration>
135                     <keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedScope>
136                     <createDependencyReducedPom>true</createDependencyReducedPom>
137                     <filters>
138                         <filter>
139                             <artifact>*:*</artifact>
140                             <excludes>
141                                 <exclude>org/onap/cps/ncmp/rest/controller/**</exclude>
142                             </excludes>
143                         </filter>
144                     </filters>
145                 </configuration>
146                 <executions>
147                     <execution>
148                         <phase>package</phase>
149                         <goals>
150                             <goal>shade</goal>
151                         </goals>
152                         <configuration>
153                             <transformers>
154                                 <transformer
155                                   implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
156                                     <resource>META-INF/spring.handlers</resource>
157                                 </transformer>
158                                 <transformer
159                                   implementation="org.springframework.boot.maven.PropertiesMergingResourceTransformer">
160                                     <resource>META-INF/spring.factories</resource>
161                                 </transformer>
162                                 <transformer
163                                   implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
164                                     <resource>META-INF/spring.schemas</resource>
165                                 </transformer>
166                                 <transformer
167                                   implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
168                                 <transformer
169                                   implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
170                                     <mainClass>org/onap/cps/ncmp/rest/stub/Application</mainClass>
171                                 </transformer>
172                             </transformers>
173                         </configuration>
174                     </execution>
175                 </executions>
176             </plugin>
177         </plugins>
178     </build>
179 </project>