Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
| 4 | ~ dcaegen2-collectors-veshv |
| 5 | ~ ================================================================================ |
fkrzywka | e74c9e1 | 2018-06-06 10:43:53 +0200 | [diff] [blame] | 6 | ~ Copyright (C) 2018 NOKIA |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 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 | --> |
Gary Wu | 2d669cf | 2018-08-24 15:20:36 -0700 | [diff] [blame] | 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"> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 22 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 23 | <modelVersion>4.0.0</modelVersion> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 24 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 25 | <licenses> |
| 26 | <license> |
| 27 | <name>The Apache Software License, Version 2.0</name> |
| 28 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 29 | </license> |
| 30 | </licenses> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 31 | |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 32 | <parent> |
| 33 | <groupId>org.onap.oparent</groupId> |
| 34 | <artifactId>oparent</artifactId> |
Gary Wu | 2d669cf | 2018-08-24 15:20:36 -0700 | [diff] [blame] | 35 | <version>1.2.0</version> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 36 | <relativePath/> |
| 37 | </parent> |
| 38 | |
Piotr Jaszczyk | ae63393 | 2018-08-21 08:28:54 +0200 | [diff] [blame] | 39 | <groupId>org.onap.dcaegen2.collectors.hv-ves</groupId> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 40 | <artifactId>ves-hv-collector</artifactId> |
Jakub Dudycz | 4aa75b5 | 2018-11-15 13:45:44 +0100 | [diff] [blame] | 41 | <version>1.0.2-SNAPSHOT</version> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 42 | <name>dcaegen2-collectors-veshv</name> |
| 43 | <description>VES HighVolume Collector</description> |
| 44 | <packaging>pom</packaging> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 45 | |
Piotr Jaszczyk | 1e77afd | 2018-06-13 09:56:17 +0200 | [diff] [blame] | 46 | <modules> |
| 47 | <module>hv-collector-analysis</module> |
Piotr Jaszczyk | 1e77afd | 2018-06-13 09:56:17 +0200 | [diff] [blame] | 48 | <module>hv-collector-core</module> |
| 49 | <module>hv-collector-coverage</module> |
| 50 | <module>hv-collector-ct</module> |
| 51 | <module>hv-collector-dcae-app-simulator</module> |
| 52 | <module>hv-collector-domain</module> |
Jakub Dudycz | dd827e2 | 2018-08-07 14:18:37 +0200 | [diff] [blame] | 53 | <module>hv-collector-health-check</module> |
Piotr Jaszczyk | 1e77afd | 2018-06-13 09:56:17 +0200 | [diff] [blame] | 54 | <module>hv-collector-main</module> |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 55 | <module>hv-collector-ssl</module> |
Jakub Dudycz | dd827e2 | 2018-08-07 14:18:37 +0200 | [diff] [blame] | 56 | <module>hv-collector-test-utils</module> |
Piotr Jaszczyk | 1e77afd | 2018-06-13 09:56:17 +0200 | [diff] [blame] | 57 | <module>hv-collector-utils</module> |
kjaniak | 3bdd417 | 2018-07-12 10:57:58 +0200 | [diff] [blame] | 58 | <module>hv-collector-ves-message-generator</module> |
fkrzywka | 2a8d4e3 | 2018-07-16 08:17:29 +0200 | [diff] [blame] | 59 | <module>hv-collector-xnf-simulator</module> |
Piotr Jaszczyk | 1e77afd | 2018-06-13 09:56:17 +0200 | [diff] [blame] | 60 | </modules> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 61 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 62 | <properties> |
Piotr Jaszczyk | d7bb3ae | 2018-09-19 13:07:13 +0200 | [diff] [blame] | 63 | <kotlin.version>1.2.70</kotlin.version> |
Piotr Jaszczyk | e2bd564 | 2018-08-21 08:49:39 +0200 | [diff] [blame] | 64 | <arrow.version>0.7.3</arrow.version> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 65 | <maven-compiler-plugin.version>3.7.0</maven-compiler-plugin.version> |
| 66 | <build-helper-maven-plugin.version>1.7</build-helper-maven-plugin.version> |
Piotr Jaszczyk | 1d9f81b | 2018-08-23 09:06:19 +0200 | [diff] [blame] | 67 | <jacoco.version>0.8.2</jacoco.version> |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 68 | <jacoco.minimum.coverage>60</jacoco.minimum.coverage> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 69 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 70 | <!-- Protocol buffers --> |
| 71 | <protobuf.version>3.5.1</protobuf.version> |
| 72 | <protoc-jar-maven-plugin.version>3.5.1.1</protoc-jar-maven-plugin.version> |
| 73 | <protobuf-generated-files.directory>${project.build.directory}/generated-sources/proto/main/java/ |
| 74 | </protobuf-generated-files.directory> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 75 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 76 | <!-- Testing and code analysis --> |
| 77 | <junit-platform.version>1.2.0-RC1</junit-platform.version> |
| 78 | <junit-jupiter.version>5.2.0-RC1</junit-jupiter.version> |
| 79 | <spek.version>1.1.5</spek.version> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 80 | <maven-surefire-plugin.version>2.22.0</maven-surefire-plugin.version> |
| 81 | <failIfMissingUnitTests>false</failIfMissingUnitTests> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 82 | <failIfMissingComponentTests>false</failIfMissingComponentTests> |
| 83 | <skipAnalysis>true</skipAnalysis> |
fkrzywka | 4b8cfb3 | 2018-06-01 12:45:22 +0200 | [diff] [blame] | 84 | |
Piotr Jaszczyk | 69f43f2 | 2018-06-25 09:59:01 +0200 | [diff] [blame] | 85 | <!-- Docker --> |
Piotr Jaszczyk | 286d4fb | 2018-08-03 11:50:23 +0200 | [diff] [blame] | 86 | <skipDocker>false</skipDocker> |
Piotr Jaszczyk | 45613ff | 2018-08-16 08:09:27 +0200 | [diff] [blame] | 87 | <skipDockerPush>true</skipDockerPush> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 88 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
Piotr Jaszczyk | 69f43f2 | 2018-06-25 09:59:01 +0200 | [diff] [blame] | 89 | <docker-image.registry>${onap.nexus.dockerregistry.daily}</docker-image.registry> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 90 | <docker-image.namespace>onap</docker-image.namespace> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 91 | <docker-image.name>${project.groupId}.${project.artifactId}</docker-image.name> |
kjaniak | 7df0f28 | 2018-12-07 08:25:01 +0100 | [diff] [blame] | 92 | <docker-image.latest>1.0-SNAPSHOT</docker-image.latest> |
Gary Wu | 2d669cf | 2018-08-24 15:20:36 -0700 | [diff] [blame] | 93 | <docker.http_proxy/> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 94 | </properties> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 95 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 96 | <build> |
| 97 | <sourceDirectory>${project.basedir}/src/main/kotlin</sourceDirectory> |
| 98 | <testSourceDirectory>${project.basedir}/src/test/kotlin</testSourceDirectory> |
| 99 | <resources> |
| 100 | <resource> |
| 101 | <directory>${project.basedir}/src/main/resources</directory> |
| 102 | </resource> |
| 103 | </resources> |
| 104 | <pluginManagement> |
| 105 | <plugins> |
| 106 | <plugin> |
| 107 | <groupId>org.apache.maven.plugins</groupId> |
| 108 | <artifactId>maven-resources-plugin</artifactId> |
| 109 | <version>3.1.0</version> |
| 110 | <configuration> |
| 111 | <encoding>UTF-8</encoding> |
| 112 | </configuration> |
| 113 | </plugin> |
| 114 | <plugin> |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 115 | <groupId>org.apache.maven.plugins</groupId> |
| 116 | <artifactId>maven-deploy-plugin</artifactId> |
| 117 | <configuration> |
| 118 | <skip>true</skip> |
| 119 | </configuration> |
| 120 | </plugin> |
| 121 | <plugin> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 122 | <artifactId>kotlin-maven-plugin</artifactId> |
| 123 | <groupId>org.jetbrains.kotlin</groupId> |
| 124 | <version>${kotlin.version}</version> |
| 125 | <configuration> |
| 126 | <jvmTarget>1.8</jvmTarget> |
Piotr Jaszczyk | 5e93c1e | 2018-08-14 12:52:28 +0200 | [diff] [blame] | 127 | <experimentalCoroutines>enable</experimentalCoroutines> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 128 | </configuration> |
| 129 | <executions> |
| 130 | <execution> |
| 131 | <id>compile</id> |
| 132 | <goals> |
| 133 | <goal>compile</goal> |
| 134 | </goals> |
| 135 | <configuration> |
| 136 | <sourceDirs> |
| 137 | <source>${project.build.sourceDirectory}</source> |
| 138 | <source>${project.build.directory}/generated-sources/annotations</source> |
| 139 | </sourceDirs> |
| 140 | </configuration> |
| 141 | </execution> |
| 142 | <execution> |
| 143 | <id>test-compile</id> |
| 144 | <goals> |
| 145 | <goal>test-compile</goal> |
| 146 | </goals> |
| 147 | <configuration> |
| 148 | <sourceDirs> |
| 149 | <source>${project.build.testSourceDirectory}</source> |
| 150 | </sourceDirs> |
| 151 | </configuration> |
| 152 | </execution> |
| 153 | </executions> |
| 154 | </plugin> |
| 155 | <plugin> |
| 156 | <groupId>com.github.os72</groupId> |
| 157 | <artifactId>protoc-jar-maven-plugin</artifactId> |
| 158 | <version>${protoc-jar-maven-plugin.version}</version> |
| 159 | </plugin> |
| 160 | <plugin> |
| 161 | <groupId>org.codehaus.mojo</groupId> |
| 162 | <artifactId>build-helper-maven-plugin</artifactId> |
| 163 | <version>${build-helper-maven-plugin.version}</version> |
| 164 | <executions> |
| 165 | <execution> |
| 166 | <id>add-source</id> |
| 167 | <phase>generate-sources</phase> |
| 168 | <goals> |
| 169 | <goal>add-source</goal> |
| 170 | </goals> |
| 171 | <configuration> |
| 172 | <sources> |
| 173 | <source>${protobuf-generated-files.directory}</source> |
| 174 | </sources> |
| 175 | </configuration> |
| 176 | </execution> |
| 177 | </executions> |
| 178 | </plugin> |
| 179 | <plugin> |
| 180 | <groupId>org.apache.maven.plugins</groupId> |
| 181 | <artifactId>maven-compiler-plugin</artifactId> |
| 182 | <version>${maven-compiler-plugin.version}</version> |
| 183 | <configuration> |
| 184 | <source>8</source> |
| 185 | <target>8</target> |
| 186 | <encoding>UTF-8</encoding> |
| 187 | <showWarnings>true</showWarnings> |
| 188 | <showDeprecation>true</showDeprecation> |
| 189 | <failOnWarning>false</failOnWarning> |
| 190 | </configuration> |
| 191 | <dependencies> |
| 192 | <dependency> |
| 193 | <groupId>org.ow2.asm</groupId> |
| 194 | <artifactId>asm</artifactId> |
| 195 | <version>6.1.1</version> <!-- Use newer version of ASM --> |
| 196 | </dependency> |
| 197 | </dependencies> |
| 198 | </plugin> |
| 199 | <!-- |
| 200 | Due to a memory leak in Surefire 2.20 and issues running on Java 9, the junit-platform-surefire-provider |
| 201 | currently only works with Surefire 2.19.1. |
| 202 | For updates see https://junit.org/junit5/docs/current/user-guide/#running-tests-build-maven |
| 203 | --> |
| 204 | <plugin> |
| 205 | <artifactId>maven-surefire-plugin</artifactId> |
| 206 | <groupId>org.apache.maven.plugins</groupId> |
| 207 | <version>${maven-surefire-plugin.version}</version> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 208 | <configuration> |
| 209 | <failIfNoTests>${failIfMissingUnitTests}</failIfNoTests> |
| 210 | <forkCount>1</forkCount> |
| 211 | <includes> |
| 212 | <include>**/*Test.*</include> |
| 213 | </includes> |
| 214 | </configuration> |
| 215 | <dependencies> |
| 216 | <dependency> |
| 217 | <groupId>org.apache.commons</groupId> |
| 218 | <artifactId>commons-lang3</artifactId> |
| 219 | <version>3.7</version> |
| 220 | </dependency> |
| 221 | <dependency> |
| 222 | <groupId>org.junit.platform</groupId> |
| 223 | <artifactId>junit-platform-surefire-provider</artifactId> |
| 224 | <version>${junit-platform.version}</version> |
| 225 | <scope>runtime</scope> |
| 226 | </dependency> |
| 227 | <dependency> |
| 228 | <groupId>org.jetbrains.spek</groupId> |
| 229 | <artifactId>spek-junit-platform-engine</artifactId> |
| 230 | <version>${spek.version}</version> |
| 231 | <scope>runtime</scope> |
| 232 | </dependency> |
| 233 | </dependencies> |
| 234 | </plugin> |
| 235 | <plugin> |
| 236 | <groupId>org.apache.maven.plugins</groupId> |
| 237 | <artifactId>maven-failsafe-plugin</artifactId> |
| 238 | <version>2.22.0</version> |
| 239 | <configuration> |
| 240 | <failIfNoTests>${failIfMissingComponentTests}</failIfNoTests> |
| 241 | <forkCount>1</forkCount> |
| 242 | <includes> |
| 243 | <include>**/*Specification.*</include> |
| 244 | </includes> |
| 245 | </configuration> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 246 | <dependencies> |
| 247 | <dependency> |
| 248 | <groupId>org.apache.commons</groupId> |
| 249 | <artifactId>commons-lang3</artifactId> |
| 250 | <version>3.7</version> |
| 251 | </dependency> |
| 252 | <dependency> |
| 253 | <groupId>org.junit.platform</groupId> |
| 254 | <artifactId>junit-platform-surefire-provider</artifactId> |
| 255 | <version>${junit-platform.version}</version> |
| 256 | <scope>runtime</scope> |
| 257 | </dependency> |
| 258 | <dependency> |
| 259 | <groupId>org.jetbrains.spek</groupId> |
| 260 | <artifactId>spek-junit-platform-engine</artifactId> |
| 261 | <version>${spek.version}</version> |
| 262 | <scope>runtime</scope> |
| 263 | </dependency> |
| 264 | </dependencies> |
| 265 | </plugin> |
Piotr Jaszczyk | 851d470 | 2018-08-23 14:45:39 +0200 | [diff] [blame] | 266 | <plugin> |
| 267 | <groupId>org.codehaus.mojo</groupId> |
| 268 | <artifactId>exec-maven-plugin</artifactId> |
| 269 | <version>1.6.0</version> |
| 270 | </plugin> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 271 | </plugins> |
| 272 | </pluginManagement> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 273 | <plugins> |
| 274 | <plugin> |
| 275 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 276 | <version>2.17</version> |
| 277 | <dependencies> |
| 278 | <dependency> |
| 279 | <groupId>org.onap.oparent</groupId> |
| 280 | <artifactId>checkstyle</artifactId> |
| 281 | <version>1.1.1</version> |
| 282 | </dependency> |
| 283 | </dependencies> |
| 284 | <executions> |
| 285 | <execution> |
| 286 | <!-- To override oparent configuration different id must be used |
| 287 | We need to override it to include .kt files in check. --> |
| 288 | <id>check-license-kotlin</id> |
| 289 | <goals> |
| 290 | <goal>check</goal> |
| 291 | </goals> |
| 292 | <phase>process-sources</phase> |
| 293 | <configuration> |
| 294 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 295 | <includeResources>false</includeResources> |
| 296 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 297 | <includeTestResources>false</includeTestResources> |
| 298 | <includes>**\/*.kt</includes> |
| 299 | <consoleOutput>true</consoleOutput> |
| 300 | <!--<failOnViolation>false</failOnViolation>--> |
| 301 | </configuration> |
| 302 | </execution> |
| 303 | </executions> |
| 304 | </plugin> |
| 305 | <plugin> |
| 306 | <groupId>org.apache.maven.plugins</groupId> |
| 307 | <artifactId>maven-antrun-plugin</artifactId> |
| 308 | <version>1.8</version> |
| 309 | <executions> |
| 310 | <execution> |
| 311 | <!-- This can be run separately with mvn antrun:run@detekt --> |
| 312 | <id>detekt</id> |
| 313 | <phase>verify</phase> |
| 314 | <goals> |
| 315 | <goal>run</goal> |
| 316 | </goals> |
| 317 | <configuration> |
| 318 | <target name="detekt" unless="${skipAnalysis}"> |
Gary Wu | 2d669cf | 2018-08-24 15:20:36 -0700 | [diff] [blame] | 319 | <java taskname="detekt" dir="${basedir}" fork="true" failonerror="true" classname="io.gitlab.arturbosch.detekt.cli.Main" classpathref="maven.plugin.classpath"> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 320 | <arg value="--input"/> |
| 321 | <arg value="${basedir}/src/main/kotlin"/> |
| 322 | <arg value="--config-resource"/> |
| 323 | <arg value="onap-detekt-config.yml"/> |
| 324 | <arg value="--filters"/> |
| 325 | <arg value=".*/target/.*,.*/resources/.*"/> |
| 326 | <arg value="--output"/> |
| 327 | <arg value="${basedir}/target/reports"/> |
| 328 | <arg value="--output-name"/> |
| 329 | <arg value="detekt-report"/> |
| 330 | <arg value="--baseline"/> |
| 331 | <arg value="${basedir}/target/reports/baseline.xml"/> |
| 332 | </java> |
| 333 | </target> |
| 334 | </configuration> |
| 335 | </execution> |
| 336 | </executions> |
| 337 | <dependencies> |
| 338 | <dependency> |
| 339 | <groupId>io.gitlab.arturbosch.detekt</groupId> |
| 340 | <artifactId>detekt-cli</artifactId> |
| 341 | <version>1.0.0.RC7</version> |
| 342 | </dependency> |
| 343 | <dependency> |
| 344 | <groupId>${project.groupId}</groupId> |
| 345 | <artifactId>hv-collector-analysis</artifactId> |
Jakub Dudycz | 4aa75b5 | 2018-11-15 13:45:44 +0100 | [diff] [blame] | 346 | <version>1.0.2-SNAPSHOT</version> |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 347 | </dependency> |
| 348 | </dependencies> |
| 349 | </plugin> |
| 350 | </plugins> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 351 | <extensions> |
| 352 | <extension> |
| 353 | <groupId>kr.motd.maven</groupId> |
| 354 | <artifactId>os-maven-plugin</artifactId> |
| 355 | <version>1.6.0</version> |
| 356 | </extension> |
| 357 | </extensions> |
| 358 | </build> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 359 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 360 | <profiles> |
| 361 | <profile> |
Piotr Jaszczyk | b20f963 | 2018-09-06 08:20:03 +0200 | [diff] [blame] | 362 | <id>docker-proxy</id> |
| 363 | <activation> |
| 364 | <property> |
| 365 | <name>docker.http_proxy</name> |
| 366 | </property> |
| 367 | </activation> |
| 368 | <properties> |
| 369 | <!-- set build args as defined in https://dmp.fabric8.io/#build-buildargs --> |
| 370 | <docker.buildArg.http_proxy>${docker.http_proxy}</docker.buildArg.http_proxy> |
| 371 | <docker.buildArg.https_proxy>${docker.http_proxy}</docker.buildArg.https_proxy> |
| 372 | </properties> |
| 373 | </profile> |
| 374 | |
| 375 | <profile> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 376 | <id>docker</id> |
| 377 | <activation> |
| 378 | <property> |
| 379 | <name>!skipDocker</name> |
| 380 | </property> |
| 381 | </activation> |
| 382 | <properties> |
| 383 | <os.detected.name>linux</os.detected.name> |
| 384 | <os.detected.arch>x86_64</os.detected.arch> |
| 385 | <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier> |
| 386 | </properties> |
| 387 | <build> |
| 388 | <pluginManagement> |
| 389 | <plugins> |
| 390 | <plugin> |
Piotr Jaszczyk | 286d4fb | 2018-08-03 11:50:23 +0200 | [diff] [blame] | 391 | <groupId>org.apache.maven.plugins</groupId> |
| 392 | <artifactId>maven-dependency-plugin</artifactId> |
| 393 | <version>3.1.1</version> |
| 394 | <executions> |
| 395 | <execution> |
| 396 | <id>docker-copy-internal-deps</id> |
| 397 | <phase>package</phase> |
| 398 | <goals> |
| 399 | <goal>copy-dependencies</goal> |
| 400 | </goals> |
| 401 | <configuration> |
| 402 | <outputDirectory>${project.build.directory}/libs/internal</outputDirectory> |
| 403 | <includeGroupIds>${project.parent.groupId}</includeGroupIds> |
| 404 | <includeScope>runtime</includeScope> |
| 405 | </configuration> |
| 406 | </execution> |
| 407 | <execution> |
| 408 | <id>docker-copy-external-deps</id> |
| 409 | <phase>package</phase> |
| 410 | <goals> |
| 411 | <goal>copy-dependencies</goal> |
| 412 | </goals> |
| 413 | <configuration> |
| 414 | <outputDirectory>${project.build.directory}/libs/external</outputDirectory> |
| 415 | <excludeGroupIds>${project.parent.groupId}</excludeGroupIds> |
| 416 | <includeScope>runtime</includeScope> |
| 417 | </configuration> |
| 418 | </execution> |
| 419 | </executions> |
| 420 | </plugin> |
| 421 | <plugin> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 422 | <groupId>io.fabric8</groupId> |
| 423 | <artifactId>docker-maven-plugin</artifactId> |
| 424 | <version>0.26.0</version> |
| 425 | <executions> |
| 426 | <execution> |
Piotr Jaszczyk | 286d4fb | 2018-08-03 11:50:23 +0200 | [diff] [blame] | 427 | <id>docker-build-image</id> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 428 | <phase>package</phase> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 429 | <goals> |
| 430 | <goal>build</goal> |
| 431 | </goals> |
| 432 | </execution> |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 433 | <execution> |
Piotr Jaszczyk | 286d4fb | 2018-08-03 11:50:23 +0200 | [diff] [blame] | 434 | <id>docker-push-image</id> |
Piotr Jaszczyk | 0aa0284 | 2018-06-06 13:18:05 +0200 | [diff] [blame] | 435 | <phase>deploy</phase> |
| 436 | <goals> |
| 437 | <goal>push</goal> |
| 438 | </goals> |
| 439 | </execution> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 440 | </executions> |
| 441 | <configuration> |
Piotr Jaszczyk | 45613ff | 2018-08-16 08:09:27 +0200 | [diff] [blame] | 442 | <skipPush>${skipDockerPush}</skipPush> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 443 | <verbose>true</verbose> |
| 444 | <imagePullPolicy>IfNotPresent</imagePullPolicy> |
| 445 | <images> |
| 446 | <image> |
| 447 | <alias>${project.artifactId}</alias> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 448 | <name>${docker-image.namespace}/${docker-image.name} |
Filip Krzywka | 88726d9 | 2018-08-10 08:26:42 +0200 | [diff] [blame] | 449 | </name> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 450 | <registry>${docker-image.registry}</registry> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 451 | <build> |
| 452 | <dockerFileDir>${project.basedir}</dockerFileDir> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 453 | <tags> |
Piotr Jaszczyk | 5bdae83 | 2018-08-30 08:42:21 +0200 | [diff] [blame] | 454 | <tag>${project.version}-${maven.build.timestamp}Z</tag> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 455 | <tag>${project.version}</tag> |
kjaniak | 7df0f28 | 2018-12-07 08:25:01 +0100 | [diff] [blame] | 456 | <tag>${docker-image.latest}</tag> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 457 | </tags> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 458 | </build> |
| 459 | </image> |
| 460 | </images> |
| 461 | </configuration> |
Piotr Jaszczyk | 8a2552a | 2018-08-03 13:05:15 +0200 | [diff] [blame] | 462 | <dependencies> |
| 463 | <dependency> |
| 464 | <groupId>io.fabric8</groupId> |
| 465 | <artifactId>run-java-sh</artifactId> |
| 466 | <version>1.2.2</version> |
| 467 | </dependency> |
| 468 | </dependencies> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 469 | </plugin> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 470 | </plugins> |
| 471 | </pluginManagement> |
| 472 | </build> |
| 473 | </profile> |
| 474 | </profiles> |
| 475 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 476 | <pluginRepositories> |
| 477 | <pluginRepository> |
| 478 | <id>arturbosch-code-analysis</id> |
| 479 | <name>arturbosch-code-analysis (for detekt)</name> |
| 480 | <url>https://dl.bintray.com/arturbosch/code-analysis/</url> |
| 481 | <layout>default</layout> |
| 482 | <releases> |
| 483 | <enabled>true</enabled> |
| 484 | <updatePolicy>never</updatePolicy> |
| 485 | </releases> |
| 486 | <snapshots> |
| 487 | <enabled>false</enabled> |
| 488 | <updatePolicy>never</updatePolicy> |
| 489 | </snapshots> |
| 490 | </pluginRepository> |
| 491 | </pluginRepositories> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 492 | |
Piotr Jaszczyk | 1e77afd | 2018-06-13 09:56:17 +0200 | [diff] [blame] | 493 | <repositories> |
| 494 | <repository> |
| 495 | <id>40_openecomp-release</id> |
| 496 | <name>40_openecomp-release</name> |
| 497 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 498 | <releases> |
| 499 | <enabled>true</enabled> |
| 500 | <updatePolicy>daily</updatePolicy> |
| 501 | </releases> |
| 502 | <snapshots> |
| 503 | <enabled>false</enabled> |
| 504 | </snapshots> |
| 505 | </repository> |
| 506 | </repositories> |
| 507 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 508 | <dependencyManagement> |
| 509 | <dependencies> |
| 510 | <dependency> |
| 511 | <groupId>com.google.guava</groupId> |
| 512 | <artifactId>guava</artifactId> |
Gary Wu | 2d669cf | 2018-08-24 15:20:36 -0700 | [diff] [blame] | 513 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 514 | <exclusions> |
| 515 | <exclusion> |
| 516 | <groupId>com.google.code.findbugs</groupId> |
| 517 | <artifactId>jsr305</artifactId> |
| 518 | </exclusion> |
| 519 | </exclusions> |
| 520 | </dependency> |
| 521 | <dependency> |
| 522 | <groupId>org.jetbrains.kotlin</groupId> |
| 523 | <artifactId>kotlin-stdlib-jdk8</artifactId> |
| 524 | <version>${kotlin.version}</version> |
| 525 | </dependency> |
| 526 | <dependency> |
| 527 | <groupId>org.jetbrains.kotlin</groupId> |
| 528 | <artifactId>kotlin-reflect</artifactId> |
| 529 | <version>${kotlin.version}</version> |
| 530 | </dependency> |
| 531 | <dependency> |
Piotr Jaszczyk | d6f5bfa | 2018-08-29 13:24:59 +0200 | [diff] [blame] | 532 | <groupId>org.jetbrains.kotlinx</groupId> |
| 533 | <artifactId>kotlinx-coroutines-core</artifactId> |
| 534 | <version>0.25.0</version> |
| 535 | </dependency> |
| 536 | <dependency> |
Piotr Jaszczyk | 0ba97c7 | 2018-06-13 15:45:00 +0200 | [diff] [blame] | 537 | <groupId>io.arrow-kt</groupId> |
| 538 | <artifactId>arrow-core</artifactId> |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 539 | <version>${arrow.version}</version> |
| 540 | <exclusions> |
| 541 | <exclusion> |
| 542 | <groupId>org.jetbrains.kotlin</groupId> |
| 543 | <artifactId>kotlin-stdlib</artifactId> |
| 544 | </exclusion> |
| 545 | <exclusion> |
| 546 | <groupId>org.jetbrains.kotlin</groupId> |
| 547 | <artifactId>kotlin-stdlib-jdk7</artifactId> |
| 548 | </exclusion> |
| 549 | </exclusions> |
Piotr Jaszczyk | 0ba97c7 | 2018-06-13 15:45:00 +0200 | [diff] [blame] | 550 | </dependency> |
| 551 | <dependency> |
| 552 | <groupId>io.arrow-kt</groupId> |
| 553 | <artifactId>arrow-syntax</artifactId> |
Piotr Jaszczyk | 6768940 | 2018-06-14 09:48:46 +0200 | [diff] [blame] | 554 | <version>${arrow.version}</version> |
| 555 | </dependency> |
| 556 | <dependency> |
| 557 | <groupId>io.arrow-kt</groupId> |
| 558 | <artifactId>arrow-instances-core</artifactId> |
| 559 | <version>${arrow.version}</version> |
| 560 | </dependency> |
| 561 | <dependency> |
| 562 | <groupId>io.arrow-kt</groupId> |
| 563 | <artifactId>arrow-instances-data</artifactId> |
| 564 | <version>${arrow.version}</version> |
| 565 | </dependency> |
| 566 | <dependency> |
| 567 | <groupId>io.arrow-kt</groupId> |
| 568 | <artifactId>arrow-effects</artifactId> |
| 569 | <version>${arrow.version}</version> |
Piotr Jaszczyk | 0ba97c7 | 2018-06-13 15:45:00 +0200 | [diff] [blame] | 570 | </dependency> |
| 571 | <dependency> |
Piotr Jaszczyk | d00acee | 2018-08-24 12:51:14 +0200 | [diff] [blame] | 572 | <groupId>io.arrow-kt</groupId> |
| 573 | <artifactId>arrow-effects-reactor</artifactId> |
| 574 | <version>${arrow.version}</version> |
| 575 | </dependency> |
| 576 | <dependency> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 577 | <groupId>ch.qos.logback</groupId> |
| 578 | <artifactId>logback-classic</artifactId> |
| 579 | <version>1.3.0-alpha4</version> |
| 580 | <scope>runtime</scope> |
| 581 | </dependency> |
| 582 | <dependency> |
| 583 | <groupId>org.slf4j</groupId> |
| 584 | <artifactId>slf4j-api</artifactId> |
| 585 | <version>1.8.0-beta1</version> |
| 586 | </dependency> |
| 587 | <dependency> |
| 588 | <groupId>io.projectreactor</groupId> |
| 589 | <artifactId>reactor-bom</artifactId> |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 590 | <!-- remember to update netty native bindings versions --> |
| 591 | <version>Bismuth-SR11</version> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 592 | <type>pom</type> |
| 593 | <scope>import</scope> |
| 594 | </dependency> |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 595 | |
| 596 | <!-- |
| 597 | Disable native extensions (ssl and epoll) on production for now. |
| 598 | Might be reintroduced if performance tests prove there is some performance issue. |
| 599 | --> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 600 | <dependency> |
| 601 | <groupId>io.netty</groupId> |
| 602 | <artifactId>netty-tcnative-boringssl-static</artifactId> |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 603 | <version>2.0.15.Final</version> |
| 604 | <scope>runtime</scope> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 605 | <classifier>${os.detected.classifier}</classifier> |
| 606 | </dependency> |
Piotr Jaszczyk | 069dcc1 | 2018-09-20 12:04:03 +0200 | [diff] [blame] | 607 | <!-- |
| 608 | <dependency> |
| 609 | <groupId>io.netty</groupId> |
| 610 | <artifactId>netty-transport-native-epoll</artifactId> |
| 611 | <version>4.1.29.Final</version> |
| 612 | <classifier>${os.detected.classifier}</classifier> |
| 613 | </dependency> |
| 614 | --> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 615 | <dependency> |
| 616 | <groupId>com.google.protobuf</groupId> |
| 617 | <artifactId>protobuf-java</artifactId> |
| 618 | <version>${protobuf.version}</version> |
| 619 | </dependency> |
| 620 | <dependency> |
Piotr Jaszczyk | 94eeb73 | 2018-06-12 14:19:10 +0200 | [diff] [blame] | 621 | <groupId>com.google.protobuf</groupId> |
| 622 | <artifactId>protobuf-java-util</artifactId> |
| 623 | <version>${protobuf.version}</version> |
| 624 | </dependency> |
| 625 | <dependency> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 626 | <groupId>commons-cli</groupId> |
| 627 | <artifactId>commons-cli</artifactId> |
| 628 | <version>1.4</version> |
| 629 | </dependency> |
| 630 | <dependency> |
| 631 | <groupId>javax.json</groupId> |
| 632 | <artifactId>javax.json-api</artifactId> |
| 633 | <version>1.1.2</version> |
| 634 | </dependency> |
| 635 | <dependency> |
| 636 | <groupId>org.glassfish</groupId> |
| 637 | <artifactId>javax.json</artifactId> |
| 638 | <version>1.1.2</version> |
| 639 | </dependency> |
Piotr Jaszczyk | 39ceb73 | 2018-06-12 12:16:19 +0200 | [diff] [blame] | 640 | <dependency> |
Filip Krzywka | adf43b1 | 2018-09-11 10:29:31 +0200 | [diff] [blame] | 641 | <!-- To override ratpack transitive dependency which creates security vulnerability |
| 642 | This issue will be resolved with ratpack 1.6.0 release --> |
| 643 | <groupId>com.fasterxml.jackson.core</groupId> |
| 644 | <artifactId>jackson-databind</artifactId> |
| 645 | <version>2.9.6</version> |
| 646 | </dependency> |
| 647 | <dependency> |
Piotr Jaszczyk | 39ceb73 | 2018-06-12 12:16:19 +0200 | [diff] [blame] | 648 | <groupId>io.ratpack</groupId> |
| 649 | <artifactId>ratpack-core</artifactId> |
| 650 | <version>1.5.4</version> |
| 651 | </dependency> |
Piotr Jaszczyk | 0ba97c7 | 2018-06-13 15:45:00 +0200 | [diff] [blame] | 652 | <dependency> |
| 653 | <groupId>io.micrometer</groupId> |
| 654 | <artifactId>micrometer-registry-jmx</artifactId> |
| 655 | <version>1.0.5</version> |
| 656 | </dependency> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 657 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 658 | <!-- Test dependencies --> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 659 | |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 660 | <dependency> |
| 661 | <groupId>org.jetbrains.spek</groupId> |
| 662 | <artifactId>spek-api</artifactId> |
| 663 | <version>${spek.version}</version> |
| 664 | <scope>test</scope> |
| 665 | </dependency> |
| 666 | <dependency> |
| 667 | <groupId>org.jetbrains.spek</groupId> |
| 668 | <artifactId>spek-junit-platform-engine</artifactId> |
| 669 | <version>${spek.version}</version> |
| 670 | <scope>test</scope> |
| 671 | </dependency> |
Piotr Jaszczyk | a4becf2 | 2018-05-29 13:35:11 +0200 | [diff] [blame] | 672 | <dependency> |
| 673 | <groupId>org.assertj</groupId> |
| 674 | <artifactId>assertj-core</artifactId> |
| 675 | <version>3.9.1</version> |
| 676 | <scope>test</scope> |
| 677 | </dependency> |
| 678 | <dependency> |
| 679 | <groupId>com.nhaarman</groupId> |
| 680 | <artifactId>mockito-kotlin</artifactId> |
| 681 | <version>1.5.0</version> |
| 682 | <scope>test</scope> |
| 683 | <exclusions> |
| 684 | <exclusion> |
| 685 | <groupId>org.mockito</groupId> |
| 686 | <artifactId>mockito-core</artifactId> |
| 687 | </exclusion> |
| 688 | </exclusions> |
| 689 | </dependency> |
| 690 | <dependency> |
| 691 | <groupId>org.mockito</groupId> |
| 692 | <artifactId>mockito-core</artifactId> |
| 693 | <version>2.18.3</version> |
| 694 | <scope>test</scope> |
| 695 | </dependency> |
| 696 | <dependency> |
| 697 | <groupId>org.jetbrains.kotlin</groupId> |
| 698 | <artifactId>kotlin-test</artifactId> |
| 699 | <version>${kotlin.version}</version> |
| 700 | <scope>test</scope> |
| 701 | </dependency> |
| 702 | <dependency> |
| 703 | <groupId>io.projectreactor</groupId> |
| 704 | <artifactId>reactor-test</artifactId> |
| 705 | <version>3.1.7.RELEASE</version> |
| 706 | <scope>test</scope> |
| 707 | </dependency> |
| 708 | </dependencies> |
| 709 | </dependencyManagement> |
Piotr Jaszczyk | e98fdcc | 2018-04-26 09:17:09 +0200 | [diff] [blame] | 710 | </project> |