Release policy/api
[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.7.0</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-pdp</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>org.springframework.boot</groupId>
100             <artifactId>spring-boot-starter-data-jpa</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>io.micrometer</groupId>
104             <artifactId>micrometer-registry-prometheus</artifactId>
105             <version>${version.io.micrometer}</version>
106             <scope>runtime</scope>
107         </dependency>
108         <dependency>
109             <groupId>io.springfox</groupId>
110             <artifactId>springfox-boot-starter</artifactId>
111             <version>${version.springfox}</version>
112         </dependency>
113         <dependency>
114             <groupId>io.springfox</groupId>
115             <artifactId>springfox-swagger-ui</artifactId>
116             <scope>runtime</scope>
117         </dependency>
118     </dependencies>
119
120     <build>
121         <resources>
122             <!-- Output the version of the api service -->
123             <resource>
124                 <directory>src/main/resources</directory>
125                 <filtering>true</filtering>
126                 <includes>
127                     <include>**/version.txt</include>
128                 </includes>
129             </resource>
130             <resource>
131                 <directory>src/main/resources</directory>
132                 <filtering>false</filtering>
133                 <excludes>
134                     <exclude>**/version.txt</exclude>
135                 </excludes>
136             </resource>
137         </resources>
138         <plugins>
139             <plugin>
140                 <groupId>org.springframework.boot</groupId>
141                 <artifactId>spring-boot-maven-plugin</artifactId>
142                 <executions>
143                     <execution>
144                         <goals>
145                             <goal>repackage</goal>
146                         </goals>
147                         <phase>package</phase>
148                     </execution>
149                 </executions>
150             </plugin>
151         </plugins>
152     </build>
153 </project>