elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | * ========================LICENSE_START================================= |
| 4 | * O-RAN-SC |
| 5 | * %% |
| 6 | * Copyright (C) 2019 Nordix Foundation |
| 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 |
| 22 | xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | <parent> |
| 27 | <groupId>org.springframework.boot</groupId> |
| 28 | <artifactId>spring-boot-starter-parent</artifactId> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 29 | <version>3.0.4</version> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 30 | <relativePath /> |
| 31 | </parent> |
elinuxhenrik | 7545070 | 2022-04-08 08:54:53 +0200 | [diff] [blame] | 32 | <groupId>org.o-ran-sc.nonrtric.plt</groupId> |
| 33 | <artifactId>informationcoordinatorservice</artifactId> |
elinuxhenrik | 75b7390 | 2022-12-12 14:38:41 +0100 | [diff] [blame] | 34 | <version>1.5.0-SNAPSHOT</version> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 35 | <licenses> |
| 36 | <license> |
| 37 | <name>The Apache Software License, Version 2.0</name> |
| 38 | <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> |
| 39 | </license> |
| 40 | </licenses> |
| 41 | <repositories> |
| 42 | <repository> |
| 43 | <id>onap-releases</id> |
| 44 | <name>onap-releases</name> |
| 45 | <url>https://nexus.onap.org/content/repositories/releases/</url> |
| 46 | </repository> |
| 47 | </repositories> |
| 48 | <properties> |
PatrikBuhr | 44fe789 | 2023-02-03 11:28:59 +0100 | [diff] [blame] | 49 | <java.version>17</java.version> |
PatrikBuhr | 9d9519c | 2022-05-31 14:01:51 +0200 | [diff] [blame] | 50 | <gson.version>2.9.0</gson.version> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 51 | <json.version>20211205</json.version> |
| 52 | <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
| 53 | <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version> |
| 54 | <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version> |
| 55 | <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version> |
| 56 | <docker-maven-plugin>0.30.0</docker-maven-plugin> |
| 57 | <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version> |
PatrikBuhr | 44fe789 | 2023-02-03 11:28:59 +0100 | [diff] [blame] | 58 | <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version> |
| 59 | <springdoc.version>2.0.2</springdoc.version> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 60 | <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 61 | <exec.skip>true</exec.skip> |
| 62 | </properties> |
PatrikBuhr | 65bb65d | 2022-10-17 08:20:53 +0200 | [diff] [blame] | 63 | <dependencies> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 64 | <dependency> |
PatrikBuhr | 44fe789 | 2023-02-03 11:28:59 +0100 | [diff] [blame] | 65 | <groupId>org.springdoc</groupId> |
| 66 | <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
| 67 | <version>${springdoc.version}</version> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.springdoc</groupId> |
| 71 | <artifactId>springdoc-openapi-ui</artifactId> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 72 | <version>${springdoc.openapi-ui.version}</version> |
PatrikBuhr | 44fe789 | 2023-02-03 11:28:59 +0100 | [diff] [blame] | 73 | </dependency> |
| 74 | <dependency> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 75 | <groupId>org.springframework.boot</groupId> |
| 76 | <artifactId>spring-boot-starter-web</artifactId> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.springframework.boot</groupId> |
| 80 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.springframework.boot</groupId> |
| 84 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 85 | </dependency> |
| 86 | <dependency> |
| 87 | <groupId>org.springframework</groupId> |
| 88 | <artifactId>spring-webflux</artifactId> |
| 89 | </dependency> |
| 90 | <dependency> |
PatrikBuhr | 9d9519c | 2022-05-31 14:01:51 +0200 | [diff] [blame] | 91 | <groupId>com.google.code.gson</groupId> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 92 | <artifactId>gson</artifactId> |
PatrikBuhr | 9d9519c | 2022-05-31 14:01:51 +0200 | [diff] [blame] | 93 | <version>${gson.version}</version> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.json</groupId> |
| 97 | <artifactId>json</artifactId> |
| 98 | <version>${json.version}</version> |
| 99 | </dependency> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 100 | <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema --> |
| 101 | <dependency> |
| 102 | <groupId>com.github.erosb</groupId> |
| 103 | <artifactId>everit-json-schema</artifactId> |
| 104 | <version>1.12.1</version> |
| 105 | </dependency> |
| 106 | <!-- Actuator dependencies --> |
| 107 | <dependency> |
| 108 | <groupId>org.springframework.boot</groupId> |
| 109 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 110 | </dependency> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 111 | <!-- For development help --> |
| 112 | <dependency> |
| 113 | <groupId>org.springframework.boot</groupId> |
| 114 | <artifactId>spring-boot-devtools</artifactId> |
| 115 | <optional>true</optional> |
| 116 | </dependency> |
| 117 | <dependency> |
| 118 | <groupId>org.springframework.boot</groupId> |
| 119 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 120 | <optional>true</optional> |
| 121 | </dependency> |
PatrikBuhr | 65bb65d | 2022-10-17 08:20:53 +0200 | [diff] [blame] | 122 | <dependency> |
| 123 | <groupId>software.amazon.awssdk</groupId> |
| 124 | <artifactId>s3</artifactId> |
| 125 | <version>2.17.292</version> |
| 126 | </dependency> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 127 | <dependency> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 128 | <groupId>org.projectlombok</groupId> |
| 129 | <artifactId>lombok</artifactId> |
| 130 | <scope>provided</scope> |
PatrikBuhr | 6f13518 | 2022-08-05 08:43:51 +0200 | [diff] [blame] | 131 | </dependency> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 132 | <!-- TEST --> |
PatrikBuhr | 6f13518 | 2022-08-05 08:43:51 +0200 | [diff] [blame] | 133 | <dependency> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 134 | <groupId>org.springframework.boot</groupId> |
| 135 | <artifactId>spring-boot-starter-test</artifactId> |
| 136 | <scope>test</scope> |
| 137 | </dependency> |
| 138 | <dependency> |
| 139 | <groupId>org.awaitility</groupId> |
| 140 | <artifactId>awaitility</artifactId> |
| 141 | <scope>test</scope> |
| 142 | </dependency> |
| 143 | <dependency> |
| 144 | <groupId>io.projectreactor</groupId> |
| 145 | <artifactId>reactor-test</artifactId> |
| 146 | <scope>test</scope> |
| 147 | </dependency> |
| 148 | <dependency> |
| 149 | <groupId>org.junit.jupiter</groupId> |
| 150 | <artifactId>junit-jupiter-engine</artifactId> |
| 151 | <scope>test</scope> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.mockito</groupId> |
| 155 | <artifactId>mockito-junit-jupiter</artifactId> |
| 156 | <scope>test</scope> |
| 157 | </dependency> |
| 158 | <dependency> |
| 159 | <groupId>org.mockito</groupId> |
| 160 | <artifactId>mockito-core</artifactId> |
| 161 | <scope>test</scope> |
| 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>com.squareup.okhttp3</groupId> |
| 165 | <artifactId>mockwebserver</artifactId> |
| 166 | <scope>test</scope> |
| 167 | </dependency> |
| 168 | </dependencies> |
| 169 | <build> |
| 170 | <plugins> |
| 171 | <plugin> |
| 172 | <groupId>org.springframework.boot</groupId> |
| 173 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 174 | </plugin> |
| 175 | <plugin> |
| 176 | <groupId>net.revelc.code.formatter</groupId> |
| 177 | <artifactId>formatter-maven-plugin</artifactId> |
| 178 | <version>${formatter-maven-plugin.version}</version> |
| 179 | <configuration> |
| 180 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 181 | </configuration> |
| 182 | <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format |
| 183 | spotless:apply process-sources --> |
| 184 | </plugin> |
| 185 | <plugin> |
| 186 | <groupId>com.diffplug.spotless</groupId> |
| 187 | <artifactId>spotless-maven-plugin</artifactId> |
| 188 | <version>${spotless-maven-plugin.version}</version> |
| 189 | <configuration> |
| 190 | <java> |
| 191 | <removeUnusedImports /> |
| 192 | <importOrder> |
| 193 | <order>com,java,org</order> |
| 194 | </importOrder> |
| 195 | </java> |
| 196 | </configuration> |
| 197 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use |
| 198 | mvn spotless:apply to rewrite source files use mvn spotless:check to validate |
| 199 | source files --> |
| 200 | </plugin> |
| 201 | <plugin> |
| 202 | <groupId>org.apache.maven.plugins</groupId> |
| 203 | <artifactId>maven-surefire-plugin</artifactId> |
| 204 | <configuration> |
| 205 | <skipTests>false</skipTests> |
| 206 | </configuration> |
| 207 | </plugin> |
| 208 | <plugin> |
| 209 | <artifactId>maven-failsafe-plugin</artifactId> |
| 210 | </plugin> |
| 211 | <plugin> |
| 212 | <groupId>org.codehaus.mojo</groupId> |
| 213 | <artifactId>build-helper-maven-plugin</artifactId> |
| 214 | <executions> |
| 215 | <execution> |
| 216 | <id>add-source</id> |
| 217 | <phase>generate-sources</phase> |
| 218 | <goals> |
| 219 | <goal>add-source</goal> |
| 220 | </goals> |
| 221 | <configuration> |
| 222 | <sources> |
| 223 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 224 | </sources> |
| 225 | </configuration> |
| 226 | </execution> |
| 227 | </executions> |
| 228 | </plugin> |
| 229 | <plugin> |
| 230 | <groupId>org.jacoco</groupId> |
| 231 | <artifactId>jacoco-maven-plugin</artifactId> |
| 232 | <version>${jacoco-maven-plugin.version}</version> |
| 233 | <executions> |
| 234 | <execution> |
| 235 | <id>default-prepare-agent</id> |
| 236 | <goals> |
| 237 | <goal>prepare-agent</goal> |
| 238 | </goals> |
| 239 | </execution> |
| 240 | <execution> |
| 241 | <id>default-report</id> |
| 242 | <phase>prepare-package</phase> |
| 243 | <goals> |
| 244 | <goal>report</goal> |
| 245 | </goals> |
| 246 | </execution> |
| 247 | </executions> |
| 248 | </plugin> |
| 249 | <plugin> |
| 250 | <groupId>io.swagger.codegen.v3</groupId> |
| 251 | <artifactId>swagger-codegen-maven-plugin</artifactId> |
| 252 | <version>${swagger-codegen-maven-plugin.version}</version> |
| 253 | <executions> |
| 254 | <execution> |
| 255 | <phase>test</phase> |
| 256 | <goals> |
| 257 | <goal>generate</goal> |
| 258 | </goals> |
| 259 | <configuration> |
| 260 | <inputSpec>${project.basedir}/api/ics-api.json</inputSpec> |
| 261 | <language>openapi-yaml</language> |
| 262 | <output>${project.basedir}/api</output> |
| 263 | <configOptions> |
| 264 | <outputFile>ics-api.yaml</outputFile> |
| 265 | </configOptions> |
| 266 | </configuration> |
| 267 | </execution> |
| 268 | </executions> |
| 269 | </plugin> |
| 270 | <plugin> |
| 271 | <groupId>io.fabric8</groupId> |
| 272 | <artifactId>docker-maven-plugin</artifactId> |
| 273 | <version>${docker-maven-plugin}</version> |
| 274 | <inherited>false</inherited> |
| 275 | <executions> |
| 276 | <execution> |
| 277 | <id>generate-nonrtric-plt-informationcoordinatorservice-image</id> |
| 278 | <phase>package</phase> |
| 279 | <goals> |
| 280 | <goal>build</goal> |
| 281 | </goals> |
| 282 | <configuration> |
| 283 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 284 | <images> |
| 285 | <image> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 286 | <name> |
| 287 | o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 288 | <build> |
| 289 | <cleanup>try</cleanup> |
| 290 | <contextDir>${basedir}</contextDir> |
| 291 | <dockerFile>Dockerfile</dockerFile> |
| 292 | <args> |
| 293 | <JAR>${project.build.finalName}.jar</JAR> |
| 294 | </args> |
| 295 | <tags> |
| 296 | <tag>${project.version}</tag> |
| 297 | </tags> |
| 298 | </build> |
| 299 | </image> |
| 300 | </images> |
| 301 | </configuration> |
| 302 | </execution> |
| 303 | <execution> |
| 304 | <id>push-nonrtric-plt-informationcoordinatorservice-image</id> |
| 305 | <goals> |
| 306 | <goal>build</goal> |
| 307 | <goal>push</goal> |
| 308 | </goals> |
| 309 | <configuration> |
| 310 | <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry> |
| 311 | <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry> |
| 312 | <images> |
| 313 | <image> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 314 | <name> |
| 315 | o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 316 | <build> |
| 317 | <contextDir>${basedir}</contextDir> |
| 318 | <dockerFile>Dockerfile</dockerFile> |
| 319 | <args> |
| 320 | <JAR>${project.build.finalName}.jar</JAR> |
| 321 | </args> |
| 322 | <tags> |
| 323 | <tag>${project.version}</tag> |
| 324 | <tag>latest</tag> |
| 325 | </tags> |
| 326 | </build> |
| 327 | </image> |
| 328 | </images> |
| 329 | </configuration> |
| 330 | </execution> |
| 331 | </executions> |
| 332 | </plugin> |
PatrikBuhr | b799cd4 | 2022-05-12 14:30:46 +0200 | [diff] [blame] | 333 | </plugins> |
elinuxhenrik | 93c5a6a | 2022-04-04 15:47:19 +0200 | [diff] [blame] | 334 | </build> |
| 335 | <issueManagement> |
| 336 | <system>JIRA</system> |
| 337 | <url>https://jira.o-ran-sc.org/</url> |
| 338 | </issueManagement> |
PatrikBuhr | 55d21fe | 2023-03-09 15:20:13 +0100 | [diff] [blame] | 339 | </project> |