Upgrade CDS client dependency to version 3.1.0
[federation.git] / gateway / pom.xml
1 <?xml version="1.0"?>
2         <!--<![CDATA[
3         ===============LICENSE_START=======================================================
4         Acumos
5         ===================================================================================
6         Copyright (C) 2017-2019 AT&T Intellectual Property & Tech Mahindra. All rights reserved.
7         ===================================================================================
8         This Acumos software file is distributed by AT&T and Tech Mahindra
9         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         This file 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22         <modelVersion>4.0.0</modelVersion>
23         <parent>
24                 <groupId>org.acumos.federation</groupId>
25                 <artifactId>federation-parent</artifactId>
26                 <version>0</version>
27         </parent>
28         <groupId>org.acumos.federation</groupId>
29         <artifactId>gateway</artifactId>
30         <version>3.1.0-SNAPSHOT</version>
31         <name>Federation Gateway</name>
32         <description>Federated Acumos Interface for inter-acumos communication</description>
33         <properties>
34                 <!-- skip the deploy-jar-to-nexus step -->
35                 <maven.install.skip>true</maven.install.skip>
36                 <maven.deploy.skip>true</maven.deploy.skip>
37                 <!-- Stand-alone RESTFul application -->
38                 <start-class>org.acumos.federation.gateway.Application</start-class>
39                 <!-- dependencies version -->
40                 <acumos-fgw-client.version>${project.version}</acumos-fgw-client.version>
41                 <docker-java.version>3.1.2</docker-java.version>
42                 <springfox.version>2.9.2</springfox.version>
43                 <guava.version>20.0</guava.version>
44                 <!-- Not supplied to all jobs; e.g., Javadoc -->
45                 <docker.pull.registry>nexus3.acumos.org:10001</docker.pull.registry>
46                 <!-- Supplied by Jenkins -->
47                 <docker.push.registry>${env.NEXUS3_PUSH_REGISTRY}</docker.push.registry>
48                 <maven.compiler.release>11</maven.compiler.release>
49         </properties>
50         <!-- Dependency/plugin versions are inherited from parent pom -->
51         <dependencies>
52                 <dependency>
53                         <groupId>org.acumos.federation</groupId>
54                         <artifactId>acumos-fgw-client</artifactId>
55                         <version>${acumos-fgw-client.version}</version>
56                 </dependency>
57                 <dependency>
58                         <!-- resolve conflicting transitive dependencies -->
59                         <groupId>com.google.guava</groupId>
60                         <artifactId>guava</artifactId>
61                         <version>${guava.version}</version>
62                 </dependency>
63                 <dependency>
64                         <groupId>com.github.docker-java</groupId>
65                         <artifactId>docker-java</artifactId>
66                         <version>${docker-java.version}</version>
67                 </dependency>
68                 <dependency>
69                         <groupId>io.springfox</groupId>
70                         <artifactId>springfox-swagger2</artifactId>
71                         <version>${springfox.version}</version>
72                 </dependency>
73                 <dependency>
74                         <groupId>org.springframework.boot</groupId>
75                         <artifactId>spring-boot-starter</artifactId>
76                 </dependency>
77                 <dependency>
78                         <groupId>org.springframework.boot</groupId>
79                         <artifactId>spring-boot-starter-json</artifactId>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.springframework.boot</groupId>
83                         <artifactId>spring-boot-starter-web</artifactId>
84                 </dependency>
85                 <dependency>
86                         <groupId>org.springframework.boot</groupId>
87                         <artifactId>spring-boot-configuration-processor</artifactId>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.springframework.boot</groupId>
91                         <artifactId>spring-boot-starter-security</artifactId>
92                 </dependency>
93                 <dependency>
94                         <groupId>org.acumos.security-verification</groupId>
95                         <artifactId>security-verification-client</artifactId>
96                         <version>1.2.0</version>
97                 </dependency>
98                 <dependency>
99                         <groupId>org.acumos.license-manager</groupId>
100                         <artifactId>license-manager-client-library</artifactId>
101                         <version>1.4.1</version>
102                 </dependency>
103                 <!-- Compile time only dependencies -->
104                 <dependency>
105                         <groupId>org.projectlombok</groupId>
106                         <artifactId>lombok</artifactId>
107                         <scope>provided</scope>
108                 </dependency>
109                 <!-- Test dependencies -->
110                 <dependency>
111                         <groupId>org.acumos.federation</groupId>
112                         <artifactId>acumos-fgw-client-test</artifactId>
113                         <scope>test</scope>
114                 </dependency>
115                 <dependency>
116                         <groupId>junit</groupId>
117                         <artifactId>junit</artifactId>
118                         <scope>test</scope>
119                 </dependency>
120                 <!-- Test runtime dependencies -->
121                 <dependency>
122                         <groupId>org.springframework.boot</groupId>
123                         <artifactId>spring-boot-starter-test</artifactId>
124                         <exclusions>
125                                 <exclusion>
126                                         <groupId>com.vaadin.external.google</groupId>
127                                         <artifactId>android-json</artifactId>
128                                 </exclusion>
129                         </exclusions>
130                         <scope>test</scope>
131                 </dependency>
132         </dependencies>
133         <build>
134                 <plugins>
135                         <plugin>
136                                 <groupId>org.projectlombok</groupId>
137                                 <artifactId>lombok-maven-plugin</artifactId>
138                         </plugin>
139                         <plugin>
140                                 <groupId>org.apache.maven.plugins</groupId>
141                                 <artifactId>maven-jar-plugin</artifactId>
142                                 <configuration>
143                                         <archive>
144                                                 <manifest>
145                                                         <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
146                                                 </manifest>
147                                                 <manifestEntries>
148                                                         <Implementation-Version>${project.version}-b${build.number}</Implementation-Version>
149                                                 </manifestEntries>
150                                         </archive>
151                                 </configuration>
152                         </plugin>
153                         <plugin>
154                                 <groupId>org.springframework.boot</groupId>
155                                 <artifactId>spring-boot-maven-plugin</artifactId>
156                                 <executions>
157                                         <execution>
158                                                 <goals>
159                                                         <goal>repackage</goal>
160                                                 </goals>
161                                         </execution>
162                                 </executions>
163                         </plugin>
164                         <plugin>
165                                 <groupId>org.apache.maven.plugins</groupId>
166                                 <artifactId>maven-deploy-plugin</artifactId>
167                                 <configuration>
168                                         <skip>true</skip>
169                                 </configuration>
170                         </plugin>
171                         <plugin>
172                                 <groupId>io.fabric8</groupId>
173                                 <artifactId>docker-maven-plugin</artifactId>
174                                 <version>0.28.0</version>
175                                 <configuration>
176                                         <verbose>true</verbose>
177                                         <pullRegistry>${docker.pull.registry}</pullRegistry>
178                                         <pushRegistry>${docker.push.registry}</pushRegistry>
179                                         <images>
180                                                 <image>
181                                                         <name>acumos/federation-gateway:${project.version}</name>
182                                                         <build>
183                                                                 <from>adoptopenjdk/openjdk11-openj9:alpine-jre</from>
184                                                                 <tags>
185                                                                         <tag>${project.version}-b${build.number}</tag>
186                                                                 </tags>
187                                                                 <assembly>
188                                                                         <descriptorRef>artifact</descriptorRef>
189                                                                 </assembly>
190                                                                 <runCmds>
191                                                                         <runCmd>mkdir /maven/logs</runCmd>
192                                                                         <runCmd>chmod -R 777 /maven</runCmd>
193                                                                 </runCmds>
194                                                                 <cmd>
195                                                                         <shell><![CDATA[cd /maven; java -Xms256m -Xmx2g -Djava.security.egd=file:/dev/./urandom -jar ${project.artifactId}-${project.version}.${project.packaging}]]></shell>
196                                                                 </cmd>
197                                                         </build>
198                                                 </image>
199                                         </images>
200                                 </configuration>
201                                 <executions>
202                                         <execution>
203                                                 <goals>
204                                                         <!-- build is bound to install phase -->
205                                                         <goal>build</goal>
206                                                         <!-- push is bound to deploy phase -->
207                                                         <goal>push</goal>
208                                                 </goals>
209                                         </execution>
210                                 </executions>
211                         </plugin>
212                         <plugin>
213                                 <groupId>org.jacoco</groupId>
214                                 <artifactId>jacoco-maven-plugin</artifactId>
215                         </plugin>
216                 </plugins>
217         </build>
218 </project>