PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [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" |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 25 | <modelVersion>4.0.0</modelVersion> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 26 | <parent> |
| 27 | <groupId>org.springframework.boot</groupId> |
| 28 | <artifactId>spring-boot-starter-parent</artifactId> |
| 29 | <version>2.1.6.RELEASE</version> |
| 30 | <relativePath /> |
| 31 | </parent> |
| 32 | <groupId>org.o-ran-sc.nonrtric</groupId> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 33 | <artifactId>policy-agent</artifactId> |
YongchaoWu | abf88f3 | 2019-12-12 20:45:12 +0100 | [diff] [blame] | 34 | <version>1.0.0-SNAPSHOT</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [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> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 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> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 48 | <properties> |
| 49 | <java.version>11</java.version> |
| 50 | <springfox.version>2.8.0</springfox.version> |
| 51 | <immutable.version>2.7.1</immutable.version> |
| 52 | <sdk.version>1.1.6</sdk.version> |
| 53 | <swagger.version>2.0.0</swagger.version> |
| 54 | <json.version>20180130</json.version> |
| 55 | <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> |
| 56 | <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version> |
| 57 | <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version> |
| 58 | <dockerfile-maven-plugin.version>1.4.13</dockerfile-maven-plugin.version> |
| 59 | </properties> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 60 | <dependencies> |
| 61 | <dependency> |
| 62 | <groupId>org.springframework.boot</groupId> |
| 63 | <artifactId>spring-boot-starter-web</artifactId> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.springframework.boot</groupId> |
| 67 | <artifactId>spring-boot-starter-thymeleaf</artifactId> |
| 68 | </dependency> |
| 69 | <dependency> |
| 70 | <groupId>org.springframework.boot</groupId> |
| 71 | <artifactId>spring-boot-starter-webflux</artifactId> |
| 72 | </dependency> |
| 73 | <dependency> |
| 74 | <groupId>org.springframework.boot</groupId> |
| 75 | <artifactId>spring-boot-devtools</artifactId> |
| 76 | <optional>true</optional> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.springframework</groupId> |
| 80 | <artifactId>spring-webflux</artifactId> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>io.swagger.core.v3</groupId> |
| 84 | <artifactId>swagger-jaxrs2</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 85 | <version>${swagger.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>io.swagger.core.v3</groupId> |
| 89 | <artifactId>swagger-jaxrs2-servlet-initializer</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 90 | <version>${swagger.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 91 | </dependency> |
| 92 | <dependency> |
| 93 | <groupId>org.immutables</groupId> |
| 94 | <artifactId>value</artifactId> |
| 95 | <version>${immutable.version}</version> |
| 96 | <scope>provided</scope> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.immutables</groupId> |
| 100 | <artifactId>gson</artifactId> |
| 101 | <version>${immutable.version}</version> |
| 102 | </dependency> |
RehanRaza | 6d8231a | 2019-12-12 11:05:55 +0100 | [diff] [blame] | 103 | <dependency> |
| 104 | <groupId>org.json</groupId> |
| 105 | <artifactId>json</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 106 | <version>${json.version}</version> |
RehanRaza | 6d8231a | 2019-12-12 11:05:55 +0100 | [diff] [blame] | 107 | </dependency> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 108 | <!--TEST --> |
| 109 | <dependency> |
| 110 | <groupId>org.springframework.boot</groupId> |
| 111 | <artifactId>spring-boot-starter-test</artifactId> |
| 112 | <scope>test</scope> |
| 113 | </dependency> |
| 114 | <!--REQUIRED TO GENERATE DOCUMENTATION --> |
| 115 | <dependency> |
| 116 | <groupId>io.springfox</groupId> |
| 117 | <artifactId>springfox-swagger2</artifactId> |
| 118 | <version>${springfox.version}</version> |
| 119 | </dependency> |
| 120 | <dependency> |
| 121 | <groupId>io.springfox</groupId> |
| 122 | <artifactId>springfox-swagger-ui</artifactId> |
| 123 | <version>${springfox.version}</version> |
| 124 | </dependency> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 125 | <dependency> |
| 126 | <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId> |
| 127 | <artifactId>cbs-client</artifactId> |
| 128 | <version>${sdk.version}</version> |
| 129 | </dependency> |
| 130 | <dependency> |
| 131 | <groupId>io.projectreactor</groupId> |
| 132 | <artifactId>reactor-test</artifactId> |
| 133 | <scope>test</scope> |
| 134 | </dependency> |
| 135 | <dependency> |
| 136 | <groupId>org.junit.jupiter</groupId> |
| 137 | <artifactId>junit-jupiter-engine</artifactId> |
| 138 | <scope>test</scope> |
| 139 | </dependency> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 140 | <dependency> |
| 141 | <groupId>org.springframework.boot</groupId> |
| 142 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 143 | <optional>true</optional> |
| 144 | </dependency> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 145 | </dependencies> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 146 | <build> |
| 147 | <plugins> |
| 148 | <plugin> |
| 149 | <groupId>org.springframework.boot</groupId> |
| 150 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 151 | </plugin> |
| 152 | <plugin> |
| 153 | <groupId>net.revelc.code.formatter</groupId> |
| 154 | <artifactId>formatter-maven-plugin</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 155 | <version>${formatter-maven-plugin.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 156 | <configuration> |
| 157 | <configFile>${project.basedir}/eclipse-formatter.xml</configFile> |
| 158 | </configuration> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 159 | <!-- https://code.revelc.net/formatter-maven-plugin/ use |
| 160 | mvn formatter:format spotless:apply process-sources --> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 161 | </plugin> |
| 162 | <plugin> |
| 163 | <groupId>com.diffplug.spotless</groupId> |
| 164 | <artifactId>spotless-maven-plugin</artifactId> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 165 | <version>${spotless-maven-plugin.version}</version> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 166 | <configuration> |
| 167 | <java> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 168 | <removeUnusedImports /> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 169 | <importOrder> |
| 170 | <order>com,java,javax,org</order> |
| 171 | </importOrder> |
| 172 | </java> |
| 173 | </configuration> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 174 | <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven |
| 175 | use mvn spotless:apply to rewrite source files use mvn spotless:check to |
| 176 | validate source files --> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 177 | </plugin> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 178 | <plugin> |
| 179 | <groupId>org.apache.maven.plugins</groupId> |
| 180 | <artifactId>maven-surefire-plugin</artifactId> |
YongchaoWu | 6fe1880 | 2019-12-09 10:00:46 +0100 | [diff] [blame] | 181 | <configuration> |
| 182 | <skipTests>false</skipTests> |
| 183 | </configuration> |
| 184 | </plugin> |
Lathish | 54b04f9 | 2019-12-12 15:35:14 +0000 | [diff] [blame] | 185 | <plugin> |
| 186 | <groupId>org.codehaus.mojo</groupId> |
| 187 | <artifactId>build-helper-maven-plugin</artifactId> |
| 188 | <executions> |
| 189 | <execution> |
| 190 | <id>add-source</id> |
| 191 | <phase>generate-sources</phase> |
| 192 | <goals> |
| 193 | <goal>add-source</goal> |
| 194 | </goals> |
| 195 | <configuration> |
| 196 | <sources> |
| 197 | <source>${project.build.directory}/generated-sources/annotations/</source> |
| 198 | </sources> |
| 199 | </configuration> |
| 200 | </execution> |
| 201 | </executions> |
| 202 | </plugin> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 203 | <plugin> |
| 204 | <groupId>com.spotify</groupId> |
| 205 | <artifactId>dockerfile-maven-plugin</artifactId> |
| 206 | <version>${dockerfile-maven-plugin.version}</version> |
| 207 | <configuration> |
| 208 | <repository>oransc/policy-agent</repository> |
| 209 | <tag>${project.version}</tag> |
| 210 | <buildArgs> |
| 211 | <JAR_FILE>${project.build.finalName}.jar</JAR_FILE> |
| 212 | </buildArgs> |
| 213 | </configuration> |
| 214 | </plugin> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 215 | </plugins> |
| 216 | </build> |
elinuxhenrik | dfbd081 | 2019-12-16 16:36:26 +0100 | [diff] [blame^] | 217 | <issueManagement> |
| 218 | <system>JIRA</system> |
| 219 | <url>https://jira.o-ran-sc.org/</url> |
| 220 | </issueManagement> |
PatrikBuhr | 3bdae60 | 2019-11-28 10:58:54 +0100 | [diff] [blame] | 221 | </project> |