pom.xml 10.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>
23
  <version>0.9.0-COSMOS-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>
David Diederich's avatar
David Diederich committed
48
49
  </properties>

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

58
59
60
61
62
63
  <!-- 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>
      <dependency>
64
65
66
        <groupId>com.azure.spring</groupId>
        <artifactId>azure-spring-boot-bom</artifactId>
        <version>${azure.spring.boot.version}</version>
67
68
69
70
        <type>pom</type>
        <scope>import</scope>
      </dependency>
      <dependency>
71
72
73
        <groupId>org.opengroup.osdu</groupId>
        <artifactId>os-core-common</artifactId>
        <version>${osdu.oscorecommon.version}</version>
74
75
76
77
78
79
80
81
82
83
        <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
84

85
86
87
88
89
  <dependencies>

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

David Diederich's avatar
David Diederich committed
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
    <!-- 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>
107
      <version>${osdu.oscorecommon.version}</version>
108
109
110
111
112
113
114
115
116
117
      <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
118
119
120
121
122
123
    </dependency>

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

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

    <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
207
208
209
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>azure-eventgrid</artifactId>
210
      <version>${azure-eventgrid.version}</version>
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
      <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
227
    </dependency>
Jason's avatar
Jason committed
228
229
230
231
232
    <dependency>
      <groupId>com.microsoft.azure</groupId>
      <artifactId>documentdb-bulkexecutor</artifactId>
      <version>${documentdb-bulkexecutor.version}</version>
    </dependency>
233
234
235
236
237
238
239
240
241
242
243
    <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
244
245
246
247
  </dependencies>

  <repositories>
    <repository>
248
249
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/groups/17/-/packages/maven</url>
David Diederich's avatar
David Diederich committed
250
251
252
253
254
    </repository>
  </repositories>

  <distributionManagement>
    <repository>
255
256
      <id>${gitlab-server}</id>
      <url>https://community.opengroup.org/api/v4/projects/77/packages/maven</url>
David Diederich's avatar
David Diederich committed
257
    </repository>
258
259
260
261
    <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
262
263
264
265
266
267
268
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
  </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>