pom.xml 10.3 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>
23
  <version>0.9.0-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-rc7</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
66
67
68
69
      <dependency>
        <groupId>com.azure</groupId>
        <artifactId>azure-spring-data-cosmos</artifactId>
        <version>${azure-spring-data-cosmos.version}</version>
      </dependency>
70
      <dependency>
71
72
73
        <groupId>com.azure.spring</groupId>
        <artifactId>azure-spring-boot-bom</artifactId>
        <version>${azure.spring.boot.version}</version>
74
75
76
77
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
78
79
80
        <groupId>org.opengroup.osdu</groupId>
        <artifactId>os-core-common</artifactId>
        <version>${osdu.oscorecommon.version}</version>
81
82
83
84
85
86
87
88
89
90
        <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
91

92
93
94
95
96
  <dependencies>

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

David Diederich's avatar
David Diederich committed
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
    <!-- 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>
114
      <version>${osdu.oscorecommon.version}</version>
115
116
117
118
119
120
121
122
123
124
      <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
125
126
127
128
129
130
    </dependency>

    <!-- Azure dependencies -->
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-identity</artifactId>
131
132
133
134
135
      <exclusions>
        <exclusion>
          <groupId>net.minidev</groupId>
          <artifactId>json-smart</artifactId>
        </exclusion>
Larissa Pereira's avatar
Larissa Pereira committed
136
137
138
139
		<exclusion>
              <groupId>org.simpleframework</groupId>
              <artifactId>simple-xml</artifactId>
          </exclusion>
140
      </exclusions>
David Diederich's avatar
David Diederich committed
141
    </dependency>
142
143
144
145
146
147
148
149
150
151
    <!--
    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
152
153
154
155
156
157
    <dependency>
      <groupId>com.azure</groupId>
      <artifactId>azure-security-keyvault-secrets</artifactId>
    </dependency>
    <dependency>
      <groupId>com.azure</groupId>
Erik Leckner's avatar
Erik Leckner committed
158
      <artifactId>azure-spring-data-cosmos</artifactId>
David Diederich's avatar
David Diederich committed
159
    </dependency>
160

David Diederich's avatar
David Diederich committed
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
    <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>
178
179
180
      <groupId>io.micrometer</groupId>
      <artifactId>micrometer-registry-azure-monitor</artifactId>
      <version>${io.micrometer.version}</version>
David Diederich's avatar
David Diederich committed
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
    </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>
202
      <version>${mockito-junit-jupiter.version}</version>
David Diederich's avatar
David Diederich committed
203
204
      <scope>test</scope>
    </dependency>
Erik Leckner's avatar
Erik Leckner committed
205
206
207
208
209
210
211
212
213

    <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
214
215
216
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-eventgrid</artifactId>
217
      <version>${azure-eventgrid.version}</version>
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
      <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
234
    </dependency>
Jason's avatar
Jason committed
235
236
237
238
239
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>documentdb-bulkexecutor</artifactId>
      <version>${documentdb-bulkexecutor.version}</version>
    </dependency>
240
241
242
243
244
245
246
247
248
249
250
    <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>
David Diederich's avatar
David Diederich committed
251
252
253
254
  </dependencies>

  <repositories>
    <repository>
255
256
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url>
David Diederich's avatar
David Diederich committed
257
258
259
260
261
    </repository>
  </repositories>

  <distributionManagement>
    <repository>
262
263
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/projects/77/packages/maven</url>
David Diederich's avatar
David Diederich committed
264
    </repository>
265
266
267
268
    <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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
  </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>