Update snapshot and/or references of policy/api to latest snapshots
[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-2023 Bell Canada.
7    Modifications Copyright (C) 2022-2024 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
25         xmlns="http://maven.apache.org/POM/4.0.0"
26         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
27         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
28                             http://maven.apache.org/xsd/maven-4.0.0.xsd">
29     <modelVersion>4.0.0</modelVersion>
30     <parent>
31         <groupId>org.onap.policy.api</groupId>
32         <artifactId>policy-api</artifactId>
33         <version>3.1.2-SNAPSHOT</version>
34     </parent>
35     <artifactId>api-main</artifactId>
36     <name>${project.artifactId}</name>
37     <description>The main module of Policy Api that handles startup, lifecycle management, and parameters.</description>
38
39     <dependencies>
40         <dependency>
41             <groupId>org.onap.policy.models</groupId>
42             <artifactId>policy-models-pdp</artifactId>
43             <version>${policy.models.version}</version>
44         </dependency>
45         <dependency>
46             <groupId>org.onap.policy.models</groupId>
47             <artifactId>policy-models-examples</artifactId>
48             <version>${policy.models.version}</version>
49         </dependency>
50         <dependency>
51             <groupId>org.onap.policy.common</groupId>
52             <artifactId>policy-endpoints</artifactId>
53             <version>${policy.common.version}</version>
54         </dependency>
55         <dependency>
56             <groupId>org.onap.policy.common</groupId>
57             <artifactId>spring-utils</artifactId>
58             <version>${policy.common.version}</version>
59         </dependency>
60         <dependency>
61             <groupId>org.onap.policy.common</groupId>
62             <artifactId>utils-test</artifactId>
63             <version>${policy.common.version}</version>
64             <scope>test</scope>
65         </dependency>
66
67         <dependency>
68             <groupId>com.google.guava</groupId>
69             <artifactId>guava</artifactId>
70         </dependency>
71         <dependency>
72             <groupId>org.hibernate</groupId>
73             <artifactId>hibernate-core-jakarta</artifactId>
74         </dependency>
75         <dependency>
76             <groupId>org.bouncycastle</groupId>
77             <artifactId>bcpkix-fips</artifactId>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-test</artifactId>
82             <scope>test</scope>
83         </dependency>
84         <dependency>
85             <groupId>org.springframework.boot</groupId>
86             <artifactId>spring-boot-starter-web</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>org.springframework.boot</groupId>
90             <artifactId>spring-boot-starter-tomcat</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-starter-security</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.springframework.boot</groupId>
98             <artifactId>spring-boot-starter-actuator</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.springframework.boot</groupId>
102             <artifactId>spring-boot-starter-data-jpa</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>org.springdoc</groupId>
106             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
107         </dependency>
108         <dependency>
109             <groupId>io.micrometer</groupId>
110             <artifactId>micrometer-registry-prometheus</artifactId>
111             <scope>runtime</scope>
112         </dependency>
113         <dependency>
114             <groupId>org.apache.tomcat.embed</groupId>
115             <artifactId>tomcat-embed-core</artifactId>
116         </dependency>
117         <dependency>
118             <groupId>com.h2database</groupId>
119             <artifactId>h2</artifactId>
120             <scope>test</scope>
121         </dependency>
122         <dependency>
123             <groupId>org.junit.jupiter</groupId>
124             <artifactId>junit-jupiter-engine</artifactId>
125             <scope>test</scope>
126         </dependency>
127         <dependency>
128             <groupId>org.mockito</groupId>
129             <artifactId>mockito-junit-jupiter</artifactId>
130             <scope>test</scope>
131         </dependency>
132     </dependencies>
133     <build>
134         <resources>
135             <!-- Output the version of the api service -->
136             <resource>
137                 <directory>src/main/resources</directory>
138                 <filtering>true</filtering>
139                 <includes>
140                     <include>**/version.txt</include>
141                 </includes>
142             </resource>
143             <resource>
144                 <directory>src/main/resources</directory>
145                 <filtering>false</filtering>
146                 <excludes>
147                     <exclude>**/version.txt</exclude>
148                 </excludes>
149             </resource>
150         </resources>
151         <plugins>
152             <plugin>
153                 <groupId>io.swagger.codegen.v3</groupId>
154                 <artifactId>swagger-codegen-maven-plugin</artifactId>
155                 <executions>
156                     <execution>
157                         <id>code-gen</id>
158                         <goals>
159                             <goal>generate</goal>
160                         </goals>
161                         <configuration>
162                             <inputSpec>${project.basedir}/src/main/resources/openapi/openapi.yaml</inputSpec>
163                             <invokerPackage>org.onap.policy.api.main.rest</invokerPackage>
164                             <modelPackage>org.onap.policy.models.tosca.authorative.concepts</modelPackage>
165                             <apiPackage>org.onap.policy.api.main.rest.genapi</apiPackage>
166                             <language>spring</language>
167                             <generateModels>false</generateModels>
168                             <generateSupportingFiles>false</generateSupportingFiles>
169                             <importMappings>
170                                 ToscaServiceTemplate=org.onap.policy.models.tosca.authorative.concepts.ToscaServiceTemplate,
171                                 ToscaNodeTemplateArray=java.util.List,
172                                 HealthCheckReport=org.onap.policy.common.endpoints.report.HealthCheckReport,
173                                 PolicyFetchMode=org.onap.policy.api.main.rest.PolicyFetchMode
174                             </importMappings>
175                             <configOptions>
176                                 <sourceFolder>src/gen/java</sourceFolder>
177                                 <dateLibrary>java17</dateLibrary>
178                                 <interfaceOnly>true</interfaceOnly>
179                                 <useTags>true</useTags>
180                                 <jakarta>true</jakarta>
181                             </configOptions>
182                         </configuration>
183                     </execution>
184                 </executions>
185             </plugin>
186             <plugin>
187                 <groupId>org.springframework.boot</groupId>
188                 <artifactId>spring-boot-maven-plugin</artifactId>
189                 <executions>
190                     <execution>
191                         <goals>
192                             <goal>repackage</goal>
193                         </goals>
194                         <phase>package</phase>
195                     </execution>
196                 </executions>
197             </plugin>
198         </plugins>
199     </build>
200 </project>