PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ~ ============LICENSE_START======================================================= |
| 4 | ~ Copyright (C) 2023 Nordix Foundation |
| 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 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 21 | 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.springframework.boot</groupId> |
| 25 | <artifactId>spring-boot-starter-parent</artifactId> |
| 26 | <version>3.0.4</version> |
| 27 | </parent> |
| 28 | <groupId>org.o-ran-sc.nonrtric.plt.ranpm</groupId> |
| 29 | <artifactId>datafile-app-server</artifactId> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 30 | <version>1.0.0-SNAPSHOT</version> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 31 | <packaging>jar</packaging> |
| 32 | <properties> |
| 33 | <java.version>17</java.version> |
| 34 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 35 | <gson.version>2.9.1</gson.version> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 36 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
| 37 | <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 38 | <springdoc.version>2.0.2</springdoc.version> |
| 39 | <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version> |
| 40 | <exec.skip>true</exec.skip> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 41 | </properties> |
| 42 | <dependencies> |
| 43 | <dependency> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 44 | <groupId>org.springdoc</groupId> |
| 45 | <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
| 46 | <version>${springdoc.version}</version> |
| 47 | </dependency> |
| 48 | <dependency> |
| 49 | <groupId>org.springdoc</groupId> |
| 50 | <artifactId>springdoc-openapi-ui</artifactId> |
| 51 | <version>${springdoc.openapi-ui.version}</version> |
| 52 | </dependency> |
| 53 | <dependency> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 54 | <groupId>com.google.code.gson</groupId> |
| 55 | <artifactId>gson</artifactId> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 56 | <version>${gson.version}</version> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>io.projectreactor.kafka</groupId> |
| 60 | <artifactId>reactor-kafka</artifactId> |
| 61 | <version>1.3.9</version> |
| 62 | </dependency> |
| 63 | <dependency> |
| 64 | <groupId>org.projectlombok</groupId> |
| 65 | <artifactId>lombok</artifactId> |
| 66 | </dependency> |
| 67 | <dependency> |
| 68 | <groupId>org.awaitility</groupId> |
| 69 | <artifactId>awaitility</artifactId> |
| 70 | <scope>test</scope> |
| 71 | </dependency> |
| 72 | <dependency> |
| 73 | <groupId>org.apache.httpcomponents</groupId> |
| 74 | <artifactId>httpasyncclient</artifactId> |
| 75 | </dependency> |
| 76 | <dependency> |
| 77 | <groupId>org.springframework.boot</groupId> |
| 78 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 79 | <optional>true</optional> |
| 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>org.springframework.boot</groupId> |
| 83 | <artifactId>spring-boot</artifactId> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>org.springframework</groupId> |
| 87 | <artifactId>spring-web</artifactId> |
| 88 | </dependency> |
| 89 | <dependency> |
| 90 | <groupId>org.springframework</groupId> |
| 91 | <artifactId>spring-webmvc</artifactId> |
| 92 | </dependency> |
| 93 | <dependency> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 94 | <groupId>org.springframework</groupId> |
| 95 | <artifactId>spring-webflux</artifactId> |
| 96 | </dependency> |
| 97 | <dependency> |
| 98 | <groupId>org.springframework.boot</groupId> |
| 99 | <artifactId>spring-boot-autoconfigure</artifactId> |
| 100 | </dependency> |
| 101 | <dependency> |
| 102 | <groupId>org.apache.httpcomponents.core5</groupId> |
| 103 | <artifactId>httpcore5</artifactId> |
| 104 | </dependency> |
| 105 | <!-- Actuator dependencies --> |
| 106 | <dependency> |
| 107 | <groupId>org.springframework.boot</groupId> |
| 108 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>software.amazon.awssdk</groupId> |
| 112 | <artifactId>s3</artifactId> |
| 113 | <version>2.17.292</version> |
| 114 | </dependency> |
| 115 | <!--TESTS |
| 116 | DEPENDENCIES --> |
| 117 | <dependency> |
| 118 | <groupId>io.projectreactor</groupId> |
| 119 | <artifactId>reactor-test</artifactId> |
| 120 | <scope>test</scope> |
| 121 | </dependency> |
| 122 | <dependency> |
| 123 | <groupId>org.junit.jupiter</groupId> |
| 124 | <artifactId>junit-jupiter-engine</artifactId> |
| 125 | <scope>test</scope> |
| 126 | </dependency> |
| 127 | <dependency> |
| 128 | <groupId>org.springframework.boot</groupId> |
| 129 | <artifactId>spring-boot-starter-test</artifactId> |
| 130 | <scope>test</scope> |
| 131 | </dependency> |
| 132 | <dependency> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 133 | <groupId>org.mockito</groupId> |
| 134 | <artifactId>mockito-junit-jupiter</artifactId> |
| 135 | <scope>test</scope> |
| 136 | </dependency> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 137 | <dependency> |
| 138 | <groupId>commons-net</groupId> |
| 139 | <artifactId>commons-net</artifactId> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 140 | <version>3.9.0</version> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 141 | </dependency> |
| 142 | <dependency> |
| 143 | <groupId>com.jcraft</groupId> |
| 144 | <artifactId>jsch</artifactId> |
| 145 | <version>0.1.55</version> |
| 146 | </dependency> |
| 147 | <dependency> |
| 148 | <groupId>io.projectreactor.netty</groupId> |
| 149 | <artifactId>reactor-netty</artifactId> |
| 150 | <version>1.0.22</version> |
| 151 | </dependency> |
| 152 | </dependencies> |
| 153 | <build> |
| 154 | <plugins> |
| 155 | <plugin> |
| 156 | <groupId>org.springframework.boot</groupId> |
| 157 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 158 | <configuration> |
| 159 | <finalName>${project.artifactId}</finalName> |
| 160 | <mainClass>org.onap.dcaegen2.collectors.datafile.MainApp</mainClass> |
| 161 | </configuration> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <goals> |
| 165 | <goal>build-info</goal> |
| 166 | </goals> |
| 167 | </execution> |
| 168 | </executions> |
| 169 | </plugin> |
| 170 | <plugin> |
| 171 | <groupId>io.fabric8</groupId> |
| 172 | <artifactId>docker-maven-plugin</artifactId> |
| 173 | <version>${docker-maven-plugin}</version> |
| 174 | <inherited>false</inherited> |
| 175 | <executions> |
| 176 | <execution> |
| 177 | <id>generate-image</id> |
| 178 | <phase>package</phase> |
| 179 | <goals> |
| 180 | <goal>build</goal> |
| 181 | </goals> |
| 182 | <configuration> |
| 183 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 184 | <images> |
| 185 | <image> |
| 186 | <name> |
| 187 | o-ran-sc/nonrtric-plt-ranpm-datafilecollector:${project.version}</name> |
| 188 | <build> |
| 189 | <cleanup>try</cleanup> |
| 190 | <contextDir>${basedir}</contextDir> |
| 191 | <dockerFile>Dockerfile</dockerFile> |
| 192 | <args> |
| 193 | <JAR>${project.build.finalName}.jar</JAR> |
| 194 | </args> |
| 195 | <tags> |
| 196 | <tag>${project.version}</tag> |
| 197 | </tags> |
| 198 | </build> |
| 199 | </image> |
| 200 | </images> |
| 201 | </configuration> |
| 202 | </execution> |
| 203 | <execution> |
| 204 | <id>push-image</id> |
| 205 | <goals> |
| 206 | <goal>build</goal> |
| 207 | <goal>push</goal> |
| 208 | </goals> |
| 209 | <configuration> |
| 210 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 211 | <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry> |
| 212 | <images> |
| 213 | <image> |
| 214 | <name> |
| 215 | o-ran-sc/nonrtric-plt-ranpm-datafilecollector:${project.version}</name> |
| 216 | <build> |
| 217 | <contextDir>${basedir}</contextDir> |
| 218 | <dockerFile>Dockerfile</dockerFile> |
| 219 | <args> |
| 220 | <JAR>${project.build.finalName}.jar</JAR> |
| 221 | </args> |
| 222 | <tags> |
| 223 | <tag>${project.version}</tag> |
| 224 | <tag>latest</tag> |
| 225 | </tags> |
| 226 | </build> |
| 227 | </image> |
| 228 | </images> |
| 229 | </configuration> |
| 230 | </execution> |
| 231 | </executions> |
| 232 | </plugin> |
| 233 | <plugin> |
PatrikBuhr | a363dc5 | 2023-03-03 14:02:50 +0100 | [diff] [blame] | 234 | <groupId>com.diffplug.spotless</groupId> |
| 235 | <artifactId>spotless-maven-plugin</artifactId> |
| 236 | <version>1.18.0</version> |
| 237 | <configuration> |
| 238 | <java> |
| 239 | <removeUnusedImports /> |
| 240 | <importOrder> |
| 241 | <order>com,java,javax,org</order> |
| 242 | </importOrder> |
| 243 | </java> |
| 244 | </configuration> |
| 245 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 246 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 247 | source files --> |
| 248 | </plugin> |
| 249 | <plugin> |
| 250 | <groupId>net.revelc.code.formatter</groupId> |
| 251 | <artifactId>formatter-maven-plugin</artifactId> |
| 252 | <version>2.8.1</version> |
| 253 | <configuration> |
| 254 | <configFile>${project.basedir}/onap-java-formatter.xml</configFile> |
| 255 | </configuration> |
| 256 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 257 | to rewrite source files use mvn formatter:validate to validate source files --> |
| 258 | </plugin> |
| 259 | <plugin> |
| 260 | <groupId>org.jacoco</groupId> |
| 261 | <artifactId>jacoco-maven-plugin</artifactId> |
| 262 | <version>${jacoco-maven-plugin.version}</version> |
| 263 | <executions> |
| 264 | <execution> |
| 265 | <id>default-prepare-agent</id> |
| 266 | <goals> |
| 267 | <goal>prepare-agent</goal> |
| 268 | </goals> |
| 269 | </execution> |
| 270 | <execution> |
| 271 | <id>default-report</id> |
| 272 | <phase>prepare-package</phase> |
| 273 | <goals> |
| 274 | <goal>report</goal> |
| 275 | </goals> |
| 276 | </execution> |
| 277 | </executions> |
| 278 | </plugin> |
| 279 | </plugins> |
| 280 | </build> |
PatrikBuhr | 7e68091 | 2023-03-09 15:11:37 +0100 | [diff] [blame^] | 281 | </project> |