Upgrade Spring Boot to version 1.5.19
[aai/gizmo.git] / pom.xml
1 <!--
2 ============LICENSE_START=======================================================
3 org.onap.aai
4 ================================================================================
5 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 Copyright © 2017-2018 Amdocs
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.oparent</groupId>
27         <artifactId>oparent</artifactId>
28         <version>1.2.0</version>
29         <relativePath />
30     </parent>
31
32     <groupId>org.onap.aai.gizmo</groupId>
33     <artifactId>gizmo</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <name>aai-gizmo</name>
36
37     <properties>
38         <docker.location>${basedir}/target</docker.location>
39         <version.org.onap.aai.aai-schema-ingest>1.4.1</version.org.onap.aai.aai-schema-ingest>
40         <version.org.onap.aai.aai-schema>1.4.0</version.org.onap.aai.aai-schema>
41         <version.org.onap.aai.aai-utils>1.4.0</version.org.onap.aai.aai-utils>
42         <version.org.onap.aai.aai-auth>1.4.0</version.org.onap.aai.aai-auth>
43         <event.client.version>1.3.1</event.client.version>
44     </properties>
45
46     <dependencyManagement>
47         <dependencies>
48             <dependency>
49                 <!-- Import dependency management from Spring Boot -->
50                 <groupId>org.springframework.boot</groupId>
51                 <artifactId>spring-boot-dependencies</artifactId>
52                 <version>1.5.19.RELEASE</version>
53                 <type>pom</type>
54                 <scope>import</scope>
55             </dependency>
56         </dependencies>
57     </dependencyManagement>
58
59     <dependencies>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-web</artifactId>
63             <exclusions>
64                 <exclusion>
65                     <groupId>org.springframework.boot</groupId>
66                     <artifactId>spring-boot-starter-tomcat</artifactId>
67                 </exclusion>
68             </exclusions>
69         </dependency>
70         <dependency>
71             <groupId>org.springframework.boot</groupId>
72             <artifactId>spring-boot-starter-jetty</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter</artifactId>
77             <exclusions>
78                 <exclusion>
79                     <groupId>ch.qos.logback</groupId>
80                     <artifactId>logback-classic</artifactId>
81                 </exclusion>
82             </exclusions>
83         </dependency>
84         <dependency>
85             <groupId>org.springframework.boot</groupId>
86             <artifactId>spring-boot-starter-jersey</artifactId>
87             <exclusions>
88                 <exclusion>
89                     <groupId>org.springframework.boot</groupId>
90                     <artifactId>spring-boot-starter-tomcat</artifactId>
91                 </exclusion>
92             </exclusions>
93         </dependency>
94         <dependency>
95             <groupId>org.springframework.boot</groupId>
96             <artifactId>spring-boot-starter-actuator</artifactId>
97         </dependency>
98         <dependency>
99             <groupId>org.springframework.boot</groupId>
100             <artifactId>spring-boot-configuration-processor</artifactId>
101             <optional>true</optional>
102         </dependency>
103         <dependency>
104             <groupId>org.springframework.boot</groupId>
105             <artifactId>spring-boot-starter-test</artifactId>
106             <scope>test</scope>
107         </dependency>
108         <dependency>
109             <groupId>org.apache.cxf</groupId>
110             <artifactId>cxf-rt-frontend-jaxrs</artifactId>
111             <version>3.2.5</version>
112         </dependency>
113
114
115      <dependency>
116          <groupId>io.swagger</groupId>
117          <artifactId>swagger-jersey2-jaxrs</artifactId>
118          <version>1.5.8</version>
119       </dependency>
120       <dependency>
121          <groupId>io.springfox</groupId>
122          <artifactId>springfox-swagger2</artifactId>
123          <version>2.9.2</version>
124       </dependency>
125             <dependency>
126          <groupId>io.springfox</groupId>
127          <artifactId>springfox-swagger-ui</artifactId>
128          <version>2.9.2</version>
129       </dependency>
130
131
132         <!-- ONAP AAI-COMMON (incl. model) -->
133         <dependency>
134             <groupId>org.onap.aai.aai-common</groupId>
135             <artifactId>aai-schema</artifactId>
136             <version>${version.org.onap.aai.aai-schema}</version>
137         </dependency>
138         <dependency>
139             <groupId>org.onap.aai.aai-common</groupId>
140             <artifactId>aai-schema-ingest</artifactId>
141             <version>${version.org.onap.aai.aai-schema-ingest}</version>
142             <exclusions>
143                 <exclusion>
144                   <groupId>org.powermock</groupId>
145                   <artifactId>*</artifactId>
146                 </exclusion>
147             </exclusions>
148         </dependency>
149         <dependency>
150             <groupId>org.onap.aai.aai-common</groupId>
151             <artifactId>aai-utils</artifactId>
152             <version>${version.org.onap.aai.aai-utils}</version>
153         </dependency>
154         <dependency>
155             <groupId>org.onap.aai.aai-common</groupId>
156             <artifactId>aai-auth</artifactId>
157             <version>${version.org.onap.aai.aai-auth}</version>
158         </dependency>
159
160         <!-- ONAP EVENT CLIENT -->
161         <dependency>
162             <groupId>org.onap.aai.event-client</groupId>
163             <artifactId>event-client-dmaap</artifactId>
164            <version>${event.client.version}</version>
165             <exclusions>
166                 <exclusion>
167                     <groupId>org.slf4j</groupId>
168                     <artifactId>slf4j-api</artifactId>
169                 </exclusion>
170             </exclusions>
171         </dependency>
172         <dependency>
173             <groupId>org.onap.aai.event-client</groupId>
174             <artifactId>event-client-kafka</artifactId>
175            <version>${event.client.version}</version>
176             <exclusions>
177                 <exclusion>
178                     <groupId>org.slf4j</groupId>
179                     <artifactId>slf4j-api</artifactId>
180                 </exclusion>
181             </exclusions>
182         </dependency>
183
184         <dependency>
185            <groupId>org.onap.aai.event-client</groupId>
186            <artifactId>event-client-rabbitmq</artifactId>
187            <version>${event.client.version}</version>
188             <exclusions>
189                 <exclusion>
190                     <groupId>org.slf4j</groupId>
191                     <artifactId>slf4j-api</artifactId>
192                 </exclusion>
193             </exclusions>
194         </dependency>
195
196         <!-- ONAP COMMON LOGGING -->
197         <dependency>
198             <groupId>org.onap.aai.logging-service</groupId>
199             <artifactId>common-logging</artifactId>
200             <version>1.2.2</version>
201             <exclusions>
202                 <exclusion>
203                     <groupId>ch.qos.logback</groupId>
204                     <artifactId>logback-classic</artifactId>
205                 </exclusion>
206                 <exclusion>
207                     <groupId>ch.qos.logback</groupId>
208                     <artifactId>logback-core</artifactId>
209                 </exclusion>
210                 <exclusion>
211                     <groupId>org.slf4j</groupId>
212                     <artifactId>slf4j-api</artifactId>
213                 </exclusion>
214             </exclusions>
215         </dependency>
216
217         <!-- ONAP REST CLIENT -->
218         <dependency>
219             <groupId>org.onap.aai</groupId>
220             <artifactId>rest-client</artifactId>
221             <version>1.2.1</version>
222         </dependency>
223
224         <dependency>
225             <groupId>ch.qos.logback</groupId>
226             <artifactId>logback-classic</artifactId>
227             <version>1.2.3</version>
228         </dependency>
229         <dependency>
230             <groupId>ch.qos.logback</groupId>
231             <artifactId>logback-core</artifactId>
232             <version>1.2.3</version>
233             <exclusions>
234                 <exclusion>
235                     <groupId>ch.qos.logback</groupId>
236                     <artifactId>logback-classic</artifactId>
237                 </exclusion>
238             </exclusions>
239         </dependency>
240         <dependency>
241             <groupId>ch.qos.logback</groupId>
242             <artifactId>logback-access</artifactId>
243             <version>1.2.3</version>
244         </dependency>
245         <dependency>
246             <groupId>com.google.guava</groupId>
247             <artifactId>guava</artifactId>
248         </dependency>
249         <dependency>
250             <groupId>radeox</groupId>
251             <artifactId>radeox</artifactId>
252             <version>1.0-b2</version>
253         </dependency>
254         <dependency>
255             <groupId>org.codehaus.jackson</groupId>
256             <artifactId>jackson-mapper-asl</artifactId>
257             <version>1.4.5</version>
258         </dependency>
259         <dependency>
260             <groupId>commons-io</groupId>
261             <artifactId>commons-io</artifactId>
262             <version>2.4</version>
263         </dependency>
264         <dependency>
265             <groupId>org.apache.commons</groupId>
266             <artifactId>commons-lang3</artifactId>
267             <version>3.3.1</version>
268         </dependency>
269         <dependency>
270             <groupId>com.google.code.gson</groupId>
271             <artifactId>gson</artifactId>
272             <version>2.6.2</version>
273         </dependency>
274         <dependency>
275             <groupId>org.eclipse.persistence</groupId>
276             <artifactId>eclipselink</artifactId>
277             <version>2.6.2</version>
278         </dependency>
279         <dependency>
280             <groupId>net.dongliu</groupId>
281             <artifactId>gson-java8-datatype</artifactId>
282             <version>1.0.3</version>
283         </dependency>
284         <dependency>
285             <groupId>com.jayway.jsonpath</groupId>
286             <artifactId>json-path</artifactId>
287             <version>2.2.0</version>
288             <exclusions>
289                 <exclusion>
290                     <groupId>org.slf4j</groupId>
291                     <artifactId>slf4j-api</artifactId>
292                 </exclusion>
293             </exclusions>
294         </dependency>
295         <dependency>
296             <groupId>org.apache.tinkerpop</groupId>
297             <artifactId>gremlin-core</artifactId>
298             <version>3.2.3</version>
299             <scope>provided</scope>
300             <exclusions>
301                 <exclusion>
302                     <groupId>org.slf4j</groupId>
303                     <artifactId>slf4j-log4j12</artifactId>
304                 </exclusion>
305                 <exclusion>
306                     <groupId>org.slf4j</groupId>
307                     <artifactId>jcl-over-slf4j</artifactId>
308                 </exclusion>
309                 <exclusion>
310                     <groupId>org.slf4j</groupId>
311                     <artifactId>slf4j-api</artifactId>
312                 </exclusion>
313             </exclusions>
314         </dependency>
315         <dependency>
316             <groupId>org.apache.tinkerpop</groupId>
317             <artifactId>tinkergraph-gremlin</artifactId>
318             <version>3.2.3</version>
319             <scope>provided</scope>
320         </dependency>
321         <dependency>
322             <groupId>org.json</groupId>
323             <artifactId>json</artifactId>
324             <version>20160212</version>
325         </dependency>
326         <dependency>
327             <groupId>org.apache.httpcomponents</groupId>
328             <artifactId>httpclient</artifactId>
329             <version>4.5.3</version>
330         </dependency>
331         <dependency>
332             <groupId>org.apache.httpcomponents</groupId>
333             <artifactId>httpcore</artifactId>
334             <version>4.4.1</version>
335         </dependency>
336
337         <!-- TEST DEPENDENCIES -->
338         <dependency>
339             <groupId>junit</groupId>
340             <artifactId>junit</artifactId>
341         </dependency>
342         <dependency>
343             <groupId>org.skyscreamer</groupId>
344             <artifactId>jsonassert</artifactId>
345             <version>1.5.0</version>
346             <scope>test</scope>
347         </dependency>
348         <dependency>
349             <groupId>org.mockito</groupId>
350             <artifactId>mockito-core</artifactId>
351             <version>2.15.0</version>
352             <scope>test</scope>
353             <exclusions>
354                 <exclusion>
355                     <groupId>org.hamcrest</groupId>
356                     <artifactId>hamcrest-library</artifactId>
357                 </exclusion>
358             </exclusions>
359         </dependency>
360     </dependencies>
361
362     <build>
363         <finalName>${project.artifactId}</finalName>
364         <plugins>
365             <!--
366             Using https://code.revelc.net/formatter-maven-plugin/ for Eclipse formatter
367             Using https://github.com/diffplug/spotless/tree/master/plugin-maven for import order
368             Use in combination to rewrite code and imports, then checkstyle
369
370             mvn formatter:format spotless:apply process-sources
371             -->
372             <plugin>
373                  <groupId>net.revelc.code.formatter</groupId>
374                  <artifactId>formatter-maven-plugin</artifactId>
375                  <version>2.8.1</version>
376                  <configuration>
377                     <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
378                  </configuration>
379                  <!-- https://code.revelc.net/formatter-maven-plugin/
380                       use mvn formatter:format to rewrite source files
381                       use mvn formatter:validate to validate source files -->
382              </plugin>
383             <plugin>
384               <groupId>com.diffplug.spotless</groupId>
385               <artifactId>spotless-maven-plugin</artifactId>
386               <version>1.18.0</version>
387               <configuration>
388                 <java>
389                  <importOrder>
390                    <order>com,java,javax,org</order>
391                  </importOrder>
392                 </java>
393               </configuration>
394             <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
395                  use mvn spotless:apply to rewrite source files
396                  use mvn spotless:check to validate source files -->
397             </plugin>
398             <plugin>
399                 <groupId>org.apache.maven.plugins</groupId>
400                 <artifactId>maven-resources-plugin</artifactId>
401                 <version>2.7</version>
402                 <executions>
403                     <execution>
404                         <id>copy-docker-file</id>
405                         <phase>package</phase>
406                         <goals>
407                             <goal>copy-resources</goal>
408                         </goals>
409                         <configuration>
410                             <outputDirectory>target</outputDirectory>
411                             <overwrite>true</overwrite>
412                             <resources>
413                                 <resource>
414                                     <directory>${basedir}/src/main/docker</directory>
415                                     <filtering>true</filtering>
416                                     <includes>
417                                         <include>**/*</include>
418                                     </includes>
419                                 </resource>
420                                 <resource>
421                                     <directory>${basedir}</directory>
422                                     <filtering>true</filtering>
423                                     <includes>
424                                         <include>bundleconfig-local/**</include>
425                                     </includes>
426                                 </resource>
427                                 <resource>
428                                     <directory>${basedir}/src/main/bin/</directory>
429                                 </resource>
430                             </resources>
431                         </configuration>
432                     </execution>
433                 </executions>
434             </plugin>
435
436             <plugin>
437                 <groupId>com.spotify</groupId>
438                 <artifactId>docker-maven-plugin</artifactId>
439                 <version>0.4.11</version>
440                 <configuration>
441                     <verbose>true</verbose>
442                     <serverId>docker-hub</serverId>
443                     <imageName>${docker.push.registry}/onap/${project.artifactId}</imageName>
444                     <dockerDirectory>${docker.location}</dockerDirectory>
445                     <imageTags>
446                         <imageTag>latest</imageTag>
447                     </imageTags>
448                     <forceTags>true</forceTags>
449                 </configuration>
450             </plugin>
451
452             <!-- license plugin -->
453             <!-- Uncomment this to add a license header to every source file -->
454             <plugin>
455                 <groupId>com.mycila</groupId>
456                 <artifactId>license-maven-plugin</artifactId>
457                 <version>3.0</version>
458                 <configuration>
459                     <header>License.txt</header>
460                     <includes>
461                         <include>src/main/java/**</include>
462                         <include>src/test/java/**</include>
463                         <include>pom.xml</include>
464                     </includes>
465                     <skipExistingHeaders>true</skipExistingHeaders>
466                 </configuration>
467                 <executions>
468                     <execution>
469                         <goals>
470                             <!-- Set goal from "check" to "format" to auto update license headers -->
471                             <goal>check</goal>
472                         </goals>
473                         <phase>process-sources</phase>
474                     </execution>
475                 </executions>
476             </plugin>
477
478             <plugin>
479                 <groupId>org.apache.maven.plugins</groupId>
480                 <artifactId>maven-site-plugin</artifactId>
481                 <version>3.3</version>
482                 <configuration>
483                     <reportPlugins>
484                         <plugin>
485                             <groupId>org.apache.maven.plugins</groupId>
486                             <artifactId>maven-checkstyle-plugin</artifactId>
487                             <version>2.17</version>
488                             <reportSets>
489                                 <reportSet>
490                                     <reports>
491                                         <report>checkstyle</report>
492                                     </reports>
493                                 </reportSet>
494                             </reportSets>
495                         </plugin>
496                     </reportPlugins>
497                 </configuration>
498             </plugin>
499             <plugin>
500                 <groupId>org.apache.maven.plugins</groupId>
501                 <artifactId>maven-deploy-plugin</artifactId>
502                 <configuration>
503                     <skip>true</skip>
504                 </configuration>
505             </plugin>
506             <plugin>
507                 <groupId>org.springframework.boot</groupId>
508                 <artifactId>spring-boot-maven-plugin</artifactId>
509                 <version>2.0.1.RELEASE</version>
510                 <executions>
511                     <execution>
512                         <goals>
513                             <goal>repackage</goal>
514                         </goals>
515                     </execution>
516                 </executions>
517             </plugin>
518             <plugin>
519                 <groupId>org.apache.maven.plugins</groupId>
520                 <artifactId>maven-dependency-plugin</artifactId>
521                 <executions>
522                     <execution>
523                         <id>unpack</id>
524                         <phase>prepare-package</phase>
525                         <goals>
526                             <goal>unpack</goal>
527                         </goals>
528                         <configuration>
529                             <artifactItems>
530                                 <artifactItem>
531                                     <groupId>org.onap.aai.aai-common</groupId>
532                                     <artifactId>aai-schema</artifactId>
533                                     <version>${version.org.onap.aai.aai-schema}</version>
534                                     <type>jar</type>
535                                     <includes>onap/**/</includes>
536                                     <outputDirectory>${project.build.directory}/bundleconfig-local/etc</outputDirectory>
537                                 </artifactItem>
538                             </artifactItems>
539                         </configuration>
540                     </execution>
541                 </executions>
542             </plugin>
543         </plugins>
544     </build>
545
546     <distributionManagement>
547         <site>
548             <id>ecomp-javadoc</id>
549             <url>dav:https://ecomp-nexus:8443/repository/aai/gizmo-javadoc/${project.version}</url>
550         </site>
551     </distributionManagement>
552 </project>