pom.xml 11.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>
Smitha Manjunath's avatar
Smitha Manjunath committed
23
  <version>0.10.0-Test1-SNAPSHOT</version>
David Diederich's avatar
David Diederich committed
24
25
26
27
28
29
30
31
  <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>
32
    <checkstyle.version>3.1.0</checkstyle.version>
David Diederich's avatar
David Diederich committed
33
    <junit.jupiter.version>5.6.0</junit.jupiter.version>
34
    <mockito-junit-jupiter.version>2.23.0</mockito-junit-jupiter.version>
David Diederich's avatar
David Diederich committed
35
    <maven.surefire.version>2.22.2</maven.surefire.version>
36
37
38
    <azure.appinsights.version>2.6.3</azure.appinsights.version>
    <azure.appinsights.log4j.version>2.6.3</azure.appinsights.log4j.version>
    <azure.spring.boot.version>3.4.0</azure.spring.boot.version>
39
    <lombok.version>1.18.16</lombok.version>
40
    <osdu.oscorecommon.version>0.9.0</osdu.oscorecommon.version>
41
42
    <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
43
    <documentdb-bulkexecutor.version>2.12.0</documentdb-bulkexecutor.version>
44
45
46
47
    <azure-eventgrid.version>1.2.0</azure-eventgrid.version>
    <json-smart.version>2.4.6</json-smart.version>
    <azure.servicebus.version>3.6.3</azure.servicebus.version>
    <io.micrometer.version>1.6.6</io.micrometer.version>
48
49
    <azure-spring-data-cosmos.version>3.7.0</azure-spring-data-cosmos.version>

David Diederich's avatar
David Diederich committed
50
51
  </properties>

David Diederich's avatar
David Diederich committed
52
  <licenses>
Erik Leckner's avatar
Erik Leckner committed
53
54
55
56
57
    <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
58
59
  </licenses>

60
61
62
63
64
  <!-- 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>
65
      <dependency>
Smitha Manjunath's avatar
Smitha Manjunath committed
66
67
68
69
70
        <!--
        This dependency is added here to override the version coming from Azure Spring boot bom.
        We need the latest azure spring data cosmos version{3.7} to use the latest cosmos sdk {4.15} which
        comes with the bug fix for handling collisions in the effective partition key.
      -->
71
72
73
74
        <groupId>com.azure</groupId>
        <artifactId>azure-spring-data-cosmos</artifactId>
        <version>${azure-spring-data-cosmos.version}</version>
      </dependency>
75
      <dependency>
76
77
78
        <groupId>com.azure.spring</groupId>
        <artifactId>azure-spring-boot-bom</artifactId>
        <version>${azure.spring.boot.version}</version>
79
80
81
82
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
83
84
85
        <groupId>org.opengroup.osdu</groupId>
        <artifactId>os-core-common</artifactId>
        <version>${osdu.oscorecommon.version}</version>
86
87
88
89
90
91
92
93
94
95
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
        <groupId>org.projectlombok</groupId>
        <artifactId>lombok</artifactId>
        <version>${lombok.version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
David Diederich's avatar
David Diederich committed
96

97
98
99
100
101
  <dependencies>

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

David Diederich's avatar
David Diederich committed
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
    <!-- Spring dependencies -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-beans</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
    </dependency>


    <!-- OSDU dependencies -->
    <dependency>
      <groupId>org.opengroup.osdu</groupId>
      <artifactId>os-core-common</artifactId>
119
      <version>${osdu.oscorecommon.version}</version>
120
121
122
123
124
125
126
127
128
129
      <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
130
131
132
133
134
135
    </dependency>

    <!-- Azure dependencies -->
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-identity</artifactId>
136
137
138
139
140
      <exclusions>
        <exclusion>
          <groupId>net.minidev</groupId>
          <artifactId>json-smart</artifactId>
        </exclusion>
Larissa Pereira's avatar
Larissa Pereira committed
141
142
143
144
		<exclusion>
              <groupId>org.simpleframework</groupId>
              <artifactId>simple-xml</artifactId>
          </exclusion>
145
      </exclusions>
David Diederich's avatar
David Diederich committed
146
    </dependency>
147
148
149
150
151
152
153
154
155
156
    <!--
    azure-identity:1.2.5 comes with problem dependency: net.minidev:json-smart:jar:2.3
    because of that we need to enforce the higher version
    -->
    <dependency>
      <groupId>net.minidev</groupId>
      <artifactId>json-smart</artifactId>
      <version>${json-smart.version}</version>
    </dependency>

David Diederich's avatar
David Diederich committed
157
158
159
160
161
162
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-security-keyvault-secrets</artifactId>
    </dependency>
    <dependency>
      <groupId>com.azure</groupId>
Erik Leckner's avatar
Erik Leckner committed
163
      <artifactId>azure-spring-data-cosmos</artifactId>
David Diederich's avatar
David Diederich committed
164
    </dependency>
165

David Diederich's avatar
David Diederich committed
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-storage-blob</artifactId>
    </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>
183
184
185
      <groupId>io.micrometer</groupId>
      <artifactId>micrometer-registry-azure-monitor</artifactId>
      <version>${io.micrometer.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
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-log4j2</artifactId>
    </dependency>
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>applicationinsights-logging-log4j2</artifactId>
      <version>${azure.appinsights.log4j.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>
207
      <version>${mockito-junit-jupiter.version}</version>
David Diederich's avatar
David Diederich committed
208
209
      <scope>test</scope>
    </dependency>
Erik Leckner's avatar
Erik Leckner committed
210
211
212
213
214
215
216
217
218

    <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
219
220
221
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-eventgrid</artifactId>
222
      <version>${azure-eventgrid.version}</version>
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
      <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
239
    </dependency>
Jason's avatar
Jason committed
240
241
242
243
244
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>documentdb-bulkexecutor</artifactId>
      <version>${documentdb-bulkexecutor.version}</version>
    </dependency>
245
246
247
248
249
250
251
252
253
254
255
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <groupId>ch.qos.logback</groupId>
          <artifactId>logback-classic</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
Smitha Manjunath's avatar
Smitha Manjunath committed
256
257
258
259
260
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
      <exclusions>
        <exclusion>
261
          <groupId>org.springframework.boot</groupId>
Smitha Manjunath's avatar
Smitha Manjunath committed
262
263
264
265
266
267
268
269
          <artifactId>spring-boot-starter-logging</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.apache.logging.log4j</groupId>
          <artifactId>log4j-api</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
David Diederich's avatar
David Diederich committed
270
271
272
273
  </dependencies>

  <repositories>
    <repository>
274
275
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url>
David Diederich's avatar
David Diederich committed
276
277
278
279
280
    </repository>
  </repositories>

  <distributionManagement>
    <repository>
281
282
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/projects/77/packages/maven</url>
David Diederich's avatar
David Diederich committed
283
    </repository>
284
285
286
287
    <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
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
  </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>