fffaa03fa72f08b0f8016cb9ab6d31391d9410a0
[policy/api.git] / main / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3    Copyright (C) 2018 Ericsson. All rights reserved.
4    Modified Copyright (C) 2018 Samsung Electronics Co., Ltd.
5    Copyright (C) 2019,2021 AT&T Intellectual Property. All rights reserved.
6    Modifications Copyright (C) 2020-2022 Bell Canada.
7    Modifications Copyright (C) 2022 Nordix Foundation.
8   ================================================================================
9   Licensed under the Apache License, Version 2.0 (the "License");
10   you may not use this file except in compliance with the License.
11   You may obtain a copy of the License at
12
13        http://www.apache.org/licenses/LICENSE-2.0
14
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20
21   SPDX-License-Identifier: Apache-2.0
22   ============LICENSE_END=========================================================
23 -->
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.policy.api</groupId>
29         <artifactId>policy-api</artifactId>
30         <version>2.6.1-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>api-main</artifactId>
34
35     <name>${project.artifactId}</name>
36     <description>The main module of Policy Api that handles startup, lifecycle management, and parameters.</description>
37
38     <dependencies>
39         <dependency>
40             <groupId>org.onap.policy.models</groupId>
41             <artifactId>policy-models-provider</artifactId>
42             <version>${policy.models.version}</version>
43         </dependency>
44         <dependency>
45             <groupId>org.onap.policy.common</groupId>
46             <artifactId>spring-utils</artifactId>
47             <version>${policy.common.version}</version>
48         </dependency>
49         <dependency>
50             <groupId>com.h2database</groupId>
51             <artifactId>h2</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.assertj</groupId>
55             <artifactId>assertj-core</artifactId>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.onap.policy.common</groupId>
60             <artifactId>utils-test</artifactId>
61             <version>${policy.common.version}</version>
62             <scope>test</scope>
63         </dependency>
64         <dependency>
65             <groupId>org.junit.vintage</groupId>
66             <artifactId>junit-vintage-engine</artifactId>
67             <scope>test</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-test</artifactId>
72             <scope>test</scope>
73         </dependency>
74         <dependency>
75             <groupId>com.google.code.gson</groupId>
76             <artifactId>gson</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.springframework.boot</groupId>
80             <artifactId>spring-boot-starter-web</artifactId>
81             <!-- Exclude the default Jackson dependency -->
82             <exclusions>
83                 <exclusion>
84                     <groupId>org.springframework.boot</groupId>
85                     <artifactId>spring-boot-starter-json</artifactId>
86                 </exclusion>
87             </exclusions>
88         </dependency>
89         <dependency>
90             <groupId>org.springframework.boot</groupId>
91             <artifactId>spring-boot-starter-security</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.springframework.boot</groupId>
95             <artifactId>spring-boot-starter-actuator</artifactId>
96             <version>${version.springboot.actuator}</version>
97         </dependency>
98         <dependency>
99             <groupId>io.micrometer</groupId>
100             <artifactId>micrometer-registry-prometheus</artifactId>
101             <version>${version.io.micrometer}</version>
102             <scope>runtime</scope>
103         </dependency>
104         <dependency>
105             <groupId>io.springfox</groupId>
106             <artifactId>springfox-boot-starter</artifactId>
107             <version>${version.springfox}</version>
108         </dependency>
109         <dependency>
110             <groupId>io.springfox</groupId>
111             <artifactId>springfox-swagger-ui</artifactId>
112             <version>${version.springfox}</version>
113             <scope>runtime</scope>
114         </dependency>
115     </dependencies>
116
117     <build>
118         <resources>
119             <!-- Output the version of the api service -->
120             <resource>
121                 <directory>src/main/resources</directory>
122                 <filtering>true</filtering>
123                 <includes>
124                     <include>**/version.txt</include>
125                 </includes>
126             </resource>
127             <resource>
128                 <directory>src/main/resources</directory>
129                 <filtering>false</filtering>
130                 <excludes>
131                     <exclude>**/version.txt</exclude>
132                 </excludes>
133             </resource>
134         </resources>
135         <plugins>
136             <plugin>
137                 <groupId>org.springframework.boot</groupId>
138                 <artifactId>spring-boot-maven-plugin</artifactId>
139                 <executions>
140                     <execution>
141                         <goals>
142                             <goal>repackage</goal>
143                         </goals>
144                         <phase>package</phase>
145                     </execution>
146                 </executions>
147             </plugin>
148         </plugins>
149     </build>
150 </project>