PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 3 | ~ ============LICENSE_START======================================================= |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 4 | ~ Copyright (C) 2018-2022 Nokia. All rights reserved. |
| 5 | ~ Copyright (C) 2018-2021 Nordix Foundation. All rights reserved. |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 6 | ~ Copyright (c) 2019 AT&T Intellectual Property. All rights reserved. |
| 7 | ~ Copyright (c) 2021 Samsung Electronics. All rights reserved. |
| 8 | ~ ================================================================================ |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 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. |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 20 | ~ ============LICENSE_END========================================================= |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 21 | --> |
| 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 26 | <parent> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 27 | <groupId>org.springframework.boot</groupId> |
| 28 | <artifactId>spring-boot-starter-parent</artifactId> |
| 29 | <version>2.5.14</version> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 30 | </parent> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 31 | <groupId>org.onap.dcaegen2.collectors.datafile</groupId> |
| 32 | <artifactId>datafile-app-server</artifactId> |
| 33 | <packaging>jar</packaging> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 34 | <properties> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 35 | <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name> |
| 36 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
| 37 | <docker-client.version>8.7.1</docker-client.version> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 38 | <springfox.version>3.0.0</springfox.version> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 39 | <gson.version>2.9.0</gson.version> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 40 | </properties> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 41 | <dependencies> |
| 42 | <dependency> |
| 43 | <groupId>com.google.code.gson</groupId> |
| 44 | <artifactId>gson</artifactId> |
| 45 | <version>2.9.1</version> |
| 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>io.projectreactor.kafka</groupId> |
| 49 | <artifactId>reactor-kafka</artifactId> |
| 50 | <version>1.3.9</version> |
| 51 | </dependency> |
| 52 | <dependency> |
| 53 | <groupId>org.projectlombok</groupId> |
| 54 | <artifactId>lombok</artifactId> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.awaitility</groupId> |
| 58 | <artifactId>awaitility</artifactId> |
| 59 | <scope>test</scope> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.apache.httpcomponents</groupId> |
| 63 | <artifactId>httpasyncclient</artifactId> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.springframework.boot</groupId> |
| 67 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 68 | <optional>true</optional> |
| 69 | </dependency> |
| 70 | <dependency> |
| 71 | <groupId>org.springframework.boot</groupId> |
| 72 | <artifactId>spring-boot</artifactId> |
| 73 | </dependency> |
| 74 | <dependency> |
| 75 | <groupId>org.springframework</groupId> |
| 76 | <artifactId>spring-web</artifactId> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.springframework</groupId> |
| 80 | <artifactId>spring-webmvc</artifactId> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>com.spotify</groupId> |
| 84 | <artifactId>docker-client</artifactId> |
| 85 | <version>${docker-client.version}</version> |
| 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>org.springframework</groupId> |
| 89 | <artifactId>spring-webflux</artifactId> |
| 90 | </dependency> |
| 91 | <dependency> |
| 92 | <groupId>org.springframework.boot</groupId> |
| 93 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.apache.httpcomponents.core5</groupId> |
| 97 | <artifactId>httpcore5</artifactId> |
| 98 | </dependency> |
| 99 | <!-- Actuator dependencies --> |
| 100 | <dependency> |
| 101 | <groupId>org.springframework.boot</groupId> |
| 102 | <artifactId>spring-boot-starter-actuator</artifactId> |
PatrikBuhr | 5b078a5 | 2022-11-07 14:02:48 +0100 | [diff] [blame] | 103 | </dependency> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 104 | <dependency> |
| 105 | <groupId>software.amazon.awssdk</groupId> |
| 106 | <artifactId>s3</artifactId> |
PatrikBuhr | 5b078a5 | 2022-11-07 14:02:48 +0100 | [diff] [blame] | 107 | <version>2.17.292</version> |
| 108 | </dependency> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 109 | <!--TESTS DEPENDENCIES --> |
| 110 | <dependency> |
| 111 | <groupId>io.projectreactor</groupId> |
| 112 | <artifactId>reactor-test</artifactId> |
| 113 | <scope>test</scope> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>org.junit.jupiter</groupId> |
| 117 | <artifactId>junit-jupiter-engine</artifactId> |
| 118 | <scope>test</scope> |
| 119 | </dependency> |
| 120 | <dependency> |
| 121 | <groupId>org.springframework.boot</groupId> |
| 122 | <artifactId>spring-boot-starter-test</artifactId> |
| 123 | <scope>test</scope> |
| 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>org.junit.vintage</groupId> |
| 127 | <artifactId>junit-vintage-engine</artifactId> |
| 128 | <version>5.7.0</version> |
| 129 | <scope>test</scope> |
| 130 | </dependency> |
| 131 | <dependency> |
| 132 | <groupId>org.awaitility</groupId> |
| 133 | <artifactId>awaitility</artifactId> |
| 134 | <scope>test</scope> |
| 135 | </dependency> |
| 136 | <dependency> |
| 137 | <groupId>org.mockito</groupId> |
| 138 | <artifactId>mockito-junit-jupiter</artifactId> |
| 139 | <scope>test</scope> |
| 140 | </dependency> |
| 141 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 142 | <dependency> |
| 143 | <groupId>io.springfox</groupId> |
| 144 | <artifactId>springfox-spring-web</artifactId> |
| 145 | <version>${springfox.version}</version> |
| 146 | </dependency> |
| 147 | <dependency> |
| 148 | <groupId>io.springfox</groupId> |
| 149 | <artifactId>springfox-spi</artifactId> |
| 150 | <version>${springfox.version}</version> |
| 151 | </dependency> |
| 152 | <dependency> |
| 153 | <groupId>io.springfox</groupId> |
| 154 | <artifactId>springfox-core</artifactId> |
| 155 | <version>${springfox.version}</version> |
| 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>org.springdoc</groupId> |
| 159 | <artifactId>springdoc-openapi-ui</artifactId> |
| 160 | <version>1.6.3</version> |
| 161 | <scope>test</scope> |
| 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>io.springfox</groupId> |
| 165 | <artifactId>springfox-swagger2</artifactId> |
| 166 | <version>${springfox.version}</version> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>io.springfox</groupId> |
| 170 | <artifactId>springfox-swagger-ui</artifactId> |
| 171 | <version>${springfox.version}</version> |
| 172 | </dependency> |
| 173 | <dependency> |
| 174 | <groupId>commons-net</groupId> |
| 175 | <artifactId>commons-net</artifactId> |
| 176 | <version>3.6</version> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>com.jcraft</groupId> |
| 180 | <artifactId>jsch</artifactId> |
| 181 | <version>0.1.55</version> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>io.projectreactor.netty</groupId> |
| 185 | <artifactId>reactor-netty</artifactId> |
| 186 | <version>1.0.22</version> |
| 187 | </dependency> |
| 188 | </dependencies> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 189 | <build> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 190 | <resources> |
| 191 | <resource> |
| 192 | <directory>src/main/resources</directory> |
| 193 | </resource> |
| 194 | </resources> |
| 195 | <plugins> |
| 196 | <plugin> |
| 197 | <groupId>org.springframework.boot</groupId> |
| 198 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 199 | <configuration> |
| 200 | <finalName>${project.artifactId}</finalName> |
| 201 | <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass> |
| 202 | </configuration> |
| 203 | <executions> |
| 204 | <execution> |
| 205 | <goals> |
| 206 | <goal>build-info</goal> |
| 207 | </goals> |
| 208 | </execution> |
| 209 | </executions> |
| 210 | </plugin> |
| 211 | <plugin> |
| 212 | <groupId>com.spotify</groupId> |
| 213 | <artifactId>docker-maven-plugin</artifactId> |
| 214 | <configuration> |
| 215 | <serverId>${onap.nexus.dockerregistry.daily}</serverId> |
| 216 | <imageName>${docker.image.name}</imageName> |
| 217 | <imageTags> |
| 218 | <imageTag>${project.version}-${maven.build.timestamp}Z</imageTag> |
| 219 | <imageTag>${project.version}</imageTag> |
| 220 | <imageTag>latest</imageTag> |
| 221 | </imageTags> |
| 222 | <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory> |
| 223 | <resources> |
| 224 | <resource> |
| 225 | <directory>${project.build.directory}</directory> |
| 226 | <include>${project.artifactId}.jar</include> |
| 227 | <targetPath>/target</targetPath> |
| 228 | </resource> |
| 229 | <resource> |
| 230 | <targetPath>/config</targetPath> |
| 231 | <directory>${project.basedir}/config</directory> |
| 232 | <include>*</include> |
| 233 | </resource> |
| 234 | </resources> |
| 235 | </configuration> |
| 236 | </plugin> |
| 237 | <plugin> |
| 238 | <groupId>pl.project13.maven</groupId> |
| 239 | <artifactId>git-commit-id-plugin</artifactId> |
| 240 | <executions> |
| 241 | <execution> |
| 242 | <id>get-the-git-infos</id> |
| 243 | <goals> |
| 244 | <goal>revision</goal> |
| 245 | </goals> |
| 246 | </execution> |
| 247 | </executions> |
| 248 | <configuration> |
| 249 | <verbose>true</verbose> |
| 250 | <dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
| 251 | <dateFormat>MM-dd-yyyy '@' HH:mm:ss Z</dateFormat> |
| 252 | <generateGitPropertiesFile>true</generateGitPropertiesFile> |
| 253 | <generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties |
| 254 | </generateGitPropertiesFilename> |
| 255 | <failOnNoGitDirectory>true</failOnNoGitDirectory> |
| 256 | </configuration> |
| 257 | </plugin> |
| 258 | <plugin> |
| 259 | <groupId>com.diffplug.spotless</groupId> |
| 260 | <artifactId>spotless-maven-plugin</artifactId> |
| 261 | <version>1.18.0</version> |
| 262 | <configuration> |
| 263 | <java> |
| 264 | <removeUnusedImports/> |
| 265 | <importOrder> |
| 266 | <order>com,java,javax,org</order> |
| 267 | </importOrder> |
| 268 | </java> |
| 269 | </configuration> |
| 270 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 271 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 272 | source files --> |
PatrikBuhr | 7bc6141 | 2022-09-12 13:23:35 +0200 | [diff] [blame] | 273 | </plugin> |
| 274 | <plugin> |
| 275 | <groupId>net.revelc.code.formatter</groupId> |
| 276 | <artifactId>formatter-maven-plugin</artifactId> |
| 277 | <version>2.8.1</version> |
| 278 | <configuration> |
| 279 | <configFile>${project.basedir}/onap-java-formatter.xml</configFile> |
| 280 | </configuration> |
| 281 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 282 | to rewrite source files use mvn formatter:validate to validate source files --> |
| 283 | </plugin> |
| 284 | </plugins> |
PatrikBuhr | 0bc6dc5 | 2022-08-16 09:37:02 +0200 | [diff] [blame] | 285 | </build> |
PatrikBuhr | 5b078a5 | 2022-11-07 14:02:48 +0100 | [diff] [blame] | 286 | </project> |