Version updated to adhere Dublin Release compliance
[dcaegen2/analytics/tca-gen2.git] / dcae-analytics / dcae-analytics-tca-web / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ================================================================================
4   ~ Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved.
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   ~ ============LICENSE_END=========================================================
18   ~
19   -->
20
21 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xmlns="http://maven.apache.org/POM/4.0.0"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.dcaegen2.analytics.tca-gen2</groupId>
29         <artifactId>dcae-analytics</artifactId>
30         <version>3.0.0-SNAPSHOT</version>
31     </parent>
32
33     <artifactId>dcae-analytics-tca-web</artifactId>
34     <packaging>jar</packaging>
35
36     <!-- THE MODULE CONTAINS WEB RELATED CODE FOR TCA -->
37     <name>DCAE Analytics TCA Web</name>
38     <description>Contains Web related code for TCA</description>
39
40     <properties>
41         <main.basedir>${project.parent.basedir}</main.basedir>
42     </properties>
43
44     <dependencies>
45
46         <!-- PROJECT DEPENDENCIES -->
47         <dependency>
48             <groupId>${project.groupId}</groupId>
49             <artifactId>dcae-analytics-web</artifactId>
50         </dependency>
51         <dependency>
52             <groupId>${project.groupId}</groupId>
53             <artifactId>dcae-analytics-tca-core</artifactId>
54         </dependency>
55
56
57         <!-- SPRING DEPENDENCIES -->
58         <dependency>
59             <groupId>org.springframework.boot</groupId>
60             <artifactId>spring-boot-starter-actuator</artifactId>
61             <exclusions>
62                 <exclusion>
63                     <groupId>io.undertow</groupId>
64                     <artifactId>undertow-core</artifactId>
65               </exclusion>
66             </exclusions>
67             
68         </dependency>
69         <dependency>
70             <groupId>io.micrometer</groupId>
71             <artifactId>micrometer-registry-prometheus</artifactId>
72         </dependency>
73
74
75         <!-- SPRING CONFIGURATION META DATA ANNOTATION PROCESSOR -->
76         <dependency>
77             <groupId>org.springframework.boot</groupId>
78             <artifactId>spring-boot-configuration-processor</artifactId>
79             <optional>true</optional>
80         </dependency>
81
82         <!-- CODE GENERATION -->
83         <dependency>
84             <groupId>org.projectlombok</groupId>
85             <artifactId>lombok</artifactId>
86             <scope>provided</scope>
87         </dependency>
88
89         <!-- FIND BUGS -->
90         <dependency>
91             <groupId>com.google.code.findbugs</groupId>
92             <artifactId>jsr305</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>com.google.code.findbugs</groupId>
96             <artifactId>annotations</artifactId>
97         </dependency>
98
99         <!-- REST API SWAGGER -->
100         <dependency>
101             <groupId>io.springfox</groupId>
102             <artifactId>springfox-swagger2</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>io.springfox</groupId>
106             <artifactId>springfox-swagger-ui</artifactId>
107         </dependency>
108
109         <!-- TEST DEPENDENCIES -->
110         <dependency>
111             <groupId>${project.groupId}</groupId>
112             <artifactId>dcae-analytics-test</artifactId>
113         </dependency>
114         <!-- https://mvnrepository.com/artifact/io.undertow/undertow-core -->
115       <dependency>
116         <groupId>io.undertow</groupId>
117         <artifactId>undertow-core</artifactId>
118         <version>2.0.17.Final</version>
119       </dependency>
120
121     </dependencies>
122
123     <dependencyManagement>
124         <dependencies>
125             <dependency>
126                 <groupId>org.springframework</groupId>
127                 <artifactId>spring-core</artifactId>
128                 <version>5.0.11.RELEASE</version>
129             </dependency>
130         </dependencies>
131     </dependencyManagement>
132     
133     <build>
134         <resources>
135             <resource>
136                 <directory>${project.basedir}/src/main/resources</directory>
137             </resource>
138             <resource>
139                 <directory>${project.build.directory}/git</directory>
140             </resource>
141         </resources>
142
143         <plugins>
144             <plugin>
145                 <groupId>pl.project13.maven</groupId>
146                 <artifactId>git-commit-id-plugin</artifactId>
147             </plugin>
148             <plugin>
149                 <groupId>org.springframework.boot</groupId>
150                 <artifactId>spring-boot-maven-plugin</artifactId>
151             </plugin>
152             <!-- DOCKER PLUGIN -->
153             <plugin>
154                 <groupId>com.spotify</groupId>
155                 <artifactId>docker-maven-plugin</artifactId>
156                 <configuration>
157                         <skipDocker>false</skipDocker>
158                         <imageName>${docker.repository}/onap/${project.groupId}.${project.artifactId}</imageName>
159                         <dockerDirectory>${project.basedir}</dockerDirectory>
160                         <resources>
161                                <resource>
162                                      <targetPath>${project.basedir}</targetPath>
163                                      <directory>${project.build.directory}</directory>
164                                      <include>${project.build.finalName}.jar</include>
165                               </resource>
166                         </resources>
167                         <imageTags>
168                                      <imageTag>${project.version}</imageTag>
169                                      <imageTag>latest</imageTag>
170                         </imageTags>
171                 </configuration>
172             </plugin>
173         </plugins>
174     </build>
175 </project>