pom.xml 12.1 KB
Newer Older
David Diederich's avatar
David Diederich committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright © Microsoft Corporation
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

18
<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/maven-v4_0_0.xsd">
David Diederich's avatar
David Diederich committed
19
20
21
22
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.opengroup.osdu</groupId>
  <artifactId>core-lib-azure</artifactId>
  <packaging>jar</packaging>
Abhishek Patil's avatar
Abhishek Patil committed
23
  <version>0.8.0-SNAPSHOT</version>
David Diederich's avatar
David Diederich committed
24
25
26
27
28
29
30
31
32
33
34
35
  <name>core-lib-azure</name>

  <properties>
    <maven.compiler.source>1.8</maven.compiler.source>
    <maven.compiler.target>1.8</maven.compiler.target>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <repos.id>os-core</repos.id>
    <repos.url>https://pkgs.dev.azure.com/slb-des-ext-collaboration/_packaging/os-core/maven/v1</repos.url>
    <org.springframework.version>5.1.9.RELEASE</org.springframework.version>
    <junit.jupiter.version>5.6.0</junit.jupiter.version>
    <maven.surefire.version>2.22.2</maven.surefire.version>
    <javax.inject.version>1</javax.inject.version>
36
37
38
39
40
    <azure.identity.version>1.1.3</azure.identity.version>
    <azure.keyvault.version>4.2.2</azure.keyvault.version>
    <azure.spring.data.cosmos.version>3.1.0</azure.spring.data.cosmos.version>
    <azure.storage.version>12.8.0</azure.storage.version>
    <azure.servicebus.version>3.4.0</azure.servicebus.version>
41
    <azure.core.version>1.11.0</azure.core.version>
42
43
    <azure.core.http.netty.version>1.6.2</azure.core.http.netty.version>
    <azure.msal4j.version>1.7.1</azure.msal4j.version>
David Diederich's avatar
David Diederich committed
44
45
    <azure.appinsights.version>2.5.1</azure.appinsights.version>
    <azure.appinsights.log4j.version>2.5.1</azure.appinsights.log4j.version>
46
    <azure.spring.boot.version>2.3.5</azure.spring.boot.version>
David Diederich's avatar
David Diederich committed
47
    <checkstyle.version>3.1.0</checkstyle.version>
48
    <jackson.version>2.11.3</jackson.version>
49
    <reactor.version>Dysprosium-SR12</reactor.version>
50
51
    <netty.version>4.1.51.Final</netty.version>
    <lombok.version>1.18.16</lombok.version>
52
    <osdu.oscorecommon.version>0.3.23</osdu.oscorecommon.version>
53
54
    <mockito-junit-jupiter.version>2.23.0</mockito-junit-jupiter.version>
    <spring-boot-starter-log4j2.version>2.3.4.RELEASE</spring-boot-starter-log4j2.version>
55
56
    <azure-mgmt-eventgrid.version>1.0.0-beta-3</azure-mgmt-eventgrid.version>
    <azure-security-keyvault-keys.version>4.2.3</azure-security-keyvault-keys.version>
Jason's avatar
Jason committed
57
    <documentdb-bulkexecutor.version>2.12.0</documentdb-bulkexecutor.version>
David Diederich's avatar
David Diederich committed
58
59
  </properties>

David Diederich's avatar
David Diederich committed
60
  <licenses>
Erik Leckner's avatar
Erik Leckner committed
61
62
63
64
65
    <license>
      <name>Apache License, Version 2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
David Diederich's avatar
David Diederich committed
66
67
  </licenses>

68
69
70
71
72
73
74
75
76
77
  <!-- List of managed dependencies to use a consistent set of version for Azure
  and some common dependencies across all OSDU services. Each OSDU service can
  inherit this list. -->
  <dependencyManagement>
    <dependencies>
      <!-- Bill of materials to make sure a consistent set of
      versions is used for Reactor 3 and Netty artifacts. -->
      <dependency>
        <groupId>io.projectreactor</groupId>
        <artifactId>reactor-bom</artifactId>
78
        <version>${reactor.version}</version>
79
80
81
82
83
84
85
86
87
88
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>io.netty</groupId>
        <artifactId>netty-bom</artifactId>
        <version>${netty.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
89
90
91
92
93
94
95
96
97
98
      <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-core</artifactId>
        <version>${azure.core.version}</version>
      </dependency>
      <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-core-http-netty</artifactId>
        <version>${azure.core.http.netty.version}</version>
      </dependency>
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
      <dependency>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>msal4j</artifactId>
        <version>${azure.msal4j.version}</version>
      </dependency>
      <!-- BOM for Azure Spring Boot Starters like azure-active-directory-spring-boot-starter,
      azure-cosmosdb-spring-boot-starter etc. -->
      <dependency>
        <groupId>com.microsoft.azure</groupId>
        <artifactId>azure-spring-boot-bom</artifactId>
        <version>${azure.spring.boot.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
      </dependency>
      <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson/jackson-bom -->
      <dependency>
        <groupId>com.fasterxml.jackson</groupId>
        <artifactId>jackson-bom</artifactId>
        <version>${jackson.version}</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
David Diederich's avatar
David Diederich committed
128

129
  <dependencies>
Erik Leckner's avatar
Erik Leckner committed
130
131
132
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-core-http-netty</artifactId>
133
134
135
136
137
    </dependency>

    <dependency>
      <groupId>org.projectlombok</groupId>
      <artifactId>lombok</artifactId>
Erik Leckner's avatar
Erik Leckner committed
138
    </dependency>
139

David Diederich's avatar
David Diederich committed
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
    <!-- Spring dependencies -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
      <version>${org.springframework.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>${org.springframework.version}</version>
    </dependency>


    <!-- OSDU dependencies -->
    <dependency>
      <groupId>org.opengroup.osdu</groupId>
      <artifactId>os-core-common</artifactId>
157
      <version>${osdu.oscorecommon.version}</version>
158
159
160
161
162
163
164
165
166
167
      <exclusions>
        <exclusion>
          <groupId>org.springframework.boot</groupId>
          <artifactId>spring-boot-starter-logging</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-api</artifactId>
        </exclusion>
      </exclusions>
David Diederich's avatar
David Diederich committed
168
169
170
171
172
173
174
175
176
177
178
179
180
    </dependency>

    <!-- Azure dependencies -->
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-identity</artifactId>
      <version>${azure.identity.version}</version>
    </dependency>
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-security-keyvault-secrets</artifactId>
      <version>${azure.keyvault.version}</version>
    </dependency>
Erik Leckner's avatar
Erik Leckner committed
181
    <!-- https://mvnrepository.com/artifact/com.azure/azure-spring-data-cosmos -->
David Diederich's avatar
David Diederich committed
182
183
    <dependency>
      <groupId>com.azure</groupId>
Erik Leckner's avatar
Erik Leckner committed
184
      <artifactId>azure-spring-data-cosmos</artifactId>
185
      <version>${azure.spring.data.cosmos.version}</version>
David Diederich's avatar
David Diederich committed
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
    </dependency>
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-storage-blob</artifactId>
      <version>${azure.storage.version}</version>
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-servicebus</artifactId>
      <version>${azure.servicebus.version}</version>
    </dependency>

    <!-- App Insights dependencies -->
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>applicationinsights-spring-boot-starter</artifactId>
      <version>${azure.appinsights.version}</version>
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-spring-boot-metrics-starter</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-log4j2</artifactId>
211
      <version>${spring-boot-starter-log4j2.version}</version>
David Diederich's avatar
David Diederich committed
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>applicationinsights-logging-log4j2</artifactId>
      <version>${azure.appinsights.log4j.version}</version>
    </dependency>


    <!-- Other dependencies -->
    <dependency>
      <groupId>javax.inject</groupId>
      <artifactId>javax.inject</artifactId>
      <version>${javax.inject.version}</version>
    </dependency>

    <!-- Test dependencies -->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter</artifactId>
      <version>${junit.jupiter.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.mockito</groupId>
      <artifactId>mockito-junit-jupiter</artifactId>
237
      <version>${mockito-junit-jupiter.version}</version>
David Diederich's avatar
David Diederich committed
238
239
      <scope>test</scope>
    </dependency>
Erik Leckner's avatar
Erik Leckner committed
240
241
242
243
244
245
246
247
248

    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
    </dependency>
Komal Makkar's avatar
Komal Makkar committed
249
250
251
252
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-eventgrid</artifactId>
      <version>1.2.0</version>
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
      <exclusions>
        <exclusion>
          <artifactId>azure-client-runtime</artifactId>
          <groupId>com.microsoft.azure</groupId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure.eventgrid.v2020_04_01_preview</groupId>
      <artifactId>azure-mgmt-eventgrid</artifactId>
      <version>${azure-mgmt-eventgrid.version}</version>
    </dependency>
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-security-keyvault-keys</artifactId>
      <version>${azure-security-keyvault-keys.version}</version>
Komal Makkar's avatar
Komal Makkar committed
269
    </dependency>
Jason's avatar
Jason committed
270
271
272
273
274
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>documentdb-bulkexecutor</artifactId>
      <version>${documentdb-bulkexecutor.version}</version>
    </dependency>
275
276
277
278
279
280
281
282
283
284
285
286
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <version>5.2.8.RELEASE</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>ch.qos.logback</groupId>
          <artifactId>logback-classic</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
David Diederich's avatar
David Diederich committed
287
288
289
290
  </dependencies>

  <repositories>
    <repository>
291
292
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url>
David Diederich's avatar
David Diederich committed
293
294
295
296
297
    </repository>
  </repositories>

  <distributionManagement>
    <repository>
298
299
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/projects/77/packages/maven</url>
David Diederich's avatar
David Diederich committed
300
    </repository>
301
302
303
304
    <snapshotRepository>
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/projects/77/packages/maven</url>
    </snapshotRepository>
David Diederich's avatar
David Diederich committed
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
  </distributionManagement>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${maven.surefire.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>${checkstyle.version}</version>
        <configuration>
          <encoding>UTF-8</encoding>
          <consoleOutput>true</consoleOutput>
          <failsOnError>true</failsOnError>
          <linkXRef>false</linkXRef>
          <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
          <suppressionsFileExpression>checkstyle.suppresions.file</suppressionsFileExpression>
        </configuration>
        <executions>
          <execution>
            <id>validate</id>
            <phase>validate</phase>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>