-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpom.xml
More file actions
396 lines (385 loc) · 16.9 KB
/
Copy pathpom.xml
File metadata and controls
396 lines (385 loc) · 16.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
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
211
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
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
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
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.smartling.api</groupId>
<artifactId>smartling-sdk-parent</artifactId>
<packaging>pom</packaging>
<version>2.0.11-SNAPSHOT</version>
<name>Smartling API Parent</name>
<description>Smartling API SDK</description>
<url>https://api-reference.smartling.com</url>
<scm>
<url>https://github.com/Smartling/java-api-sdk</url>
<developerConnection>scm:git:ssh://git@github.com/Smartling/java-api-sdk</developerConnection>
<tag>HEAD</tag>
</scm>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<org.jboss.resteasy.version>4.7.10.Final</org.jboss.resteasy.version>
<apache.httpclient.version>4.5.14</apache.httpclient.version>
<jackson.version>2.21.5</jackson.version>
<commons-io.version>2.19.0</commons-io.version>
<jakarta.mail.version>1.6.8</jakarta.mail.version>
<apache.mime4j.version>0.8.10</apache.mime4j.version>
<okhttp.version>4.12.0</okhttp.version>
<wiremock.version>2.35.2</wiremock.version>
<commons-lang3.version>3.20.0</commons-lang3.version>
<slf4j.version>2.0.17</slf4j.version>
<maven-javadoc-plugin.version>3.12.0</maven-javadoc-plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<!-- CVE fix: import the Jackson BOM so ${jackson.version} actually governs
jackson-core/databind across the reactor (previously a no-op) and keeps
all jackson-* artifacts aligned. -->
<dependency>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-bom</artifactId>
<version>${jackson.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${apache.httpclient.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>${commons-lang3.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.38</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>${org.jboss.resteasy.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jackson2-provider</artifactId>
<version>${org.jboss.resteasy.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-multipart-provider</artifactId>
<version>${org.jboss.resteasy.version}</version>
</dependency>
<!-- CVE fix: pin RESTEasy 4.7.10's vulnerable transitives to patched versions.
Declared directly (not just in dependencyManagement) so the patched versions
propagate to downstream consumers via Maven nearest-wins. RESTEasy itself stays
on 4.7.10.Final to keep the javax.ws.rs namespace / Java 8. The jackson stack
takes its version from the imported jackson-bom above. -->
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons-io.version}</version>
</dependency>
<dependency>
<groupId>org.apache.james</groupId>
<artifactId>apache-mime4j-core</artifactId>
<version>${apache.mime4j.version}</version>
<scope>runtime</scope>
</dependency>
<!-- apache-mime4j-dom must stay compile-scoped: TranslatedFileMultipartReader reaches
org.apache.james.mime4j.dom.Multipart through RESTEasy's MultipartInput signature,
so javac needs it even though the type never appears in our source. Moving it to
runtime like its siblings fails the smartling-files-api build. -->
<dependency>
<groupId>org.apache.james</groupId>
<artifactId>apache-mime4j-dom</artifactId>
<version>${apache.mime4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.james</groupId>
<artifactId>apache-mime4j-storage</artifactId>
<version>${apache.mime4j.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<!-- the rest of the jackson stack that RESTEasy pulls transitively must be declared
directly too, so the jackson-bom version propagates to downstream consumers via
nearest-wins. Otherwise the connector gets these at RESTEasy's bundled version,
an unsupported mismatch against jackson-databind (databind requires
jackson-annotations >= its own version). All versionless -> governed by jackson-bom. -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-base</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-jaxb-annotations</artifactId>
<scope>runtime</scope>
</dependency>
<!-- Must stay compile-scoped (not runtime): RESTEasy pulls this in at compile scope, and a
runtime-scoped override here is invisible to Gradle/Maven's compile-scope resolution,
leaving the old vulnerable version on downstream consumers' compile classpath. -->
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<version>${jakarta.mail.version}</version>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.ws.rs</groupId>
<artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
<version>1.0.1.Final</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>5.18.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver</artifactId>
<version>${okhttp.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<version>${wiremock.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<source>17</source>
<target>17</target>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<configuration>
<gpgArguments>
<gpgArgument>--no-tty</gpgArgument>
<gpgArgument>--batch</gpgArgument>
<gpgArgument>--pinentry-mode</gpgArgument>
<gpgArgument>loopback</gpgArgument>
</gpgArguments>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<configuration>
<detectOfflineLinks>false</detectOfflineLinks>
<failOnError>false</failOnError>
<links>
<link>https://docs.oracle.com/en/java/javase/17/docs/api/</link>
<link>https://jakarta.ee/specifications/restful-ws/3.1/apidocs/</link>
<link>https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/</link>
<link>https://www.slf4j.org/apidocs/</link>
<link>https://javadoc.io/doc/org.projectlombok/lombok/1.18.42/</link>
</links>
<defaultAuthor>Smartling, Inc.</defaultAuthor>
<version>true</version>
<name>Smartling API SDK</name>
</configuration>
</plugin>
</plugins>
</build>
<!-- list in alphabetical order, except api-sdk-all -->
<modules>
<module>smartling-accounts-api</module>
<module>samrtling-api-test-utils</module>
<module>smartling-api-commons</module>
<module>smartling-attachments-api</module>
<module>smartling-issues-api</module>
<module>smartling-jobs-api</module>
<module>smartling-locales-api</module>
<module>smartling-job-batches-api</module>
<module>smartling-files-api</module>
<module>smartling-projects-api</module>
<module>smartling-strings-api</module>
<module>smartling-contexts-api</module>
<module>smartling-reports-api</module>
<module>smartling-glossary-api</module>
<module>smartling-file-translations-api</module>
<module>smartling-mt-router-api</module>
<module>smartling-api-sdk-all</module> <!-- keep last -->
</modules>
<developers>
<developer>
<name>Smartling</name>
<organization>Smartling, Inc.</organization>
<url>https://github.com/Smartling/</url>
<roles>
<role>Organization</role>
</roles>
</developer>
<developer>
<name>Scott Rossillo</name>
<organization>Smartling, Inc.</organization>
<url>https://github.com/foo4u/</url>
</developer>
</developers>
<distributionManagement>
<snapshotRepository>
<id>github</id>
<url>https://maven.pkg.github.com/smartling/java-api-sdk</url>
</snapshotRepository>
</distributionManagement>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>com.smartling.cc4j</groupId>
<artifactId>conventional-commits-maven-plugin</artifactId>
<version>0.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<dryRun>false</dryRun>
<pushChanges>true</pushChanges>
<tagNameFormat>v@{project.version}</tagNameFormat>
<allowTimestampedSnapshots>false</allowTimestampedSnapshots>
<scmCommentPrefix xml:space="preserve">ci: </scmCommentPrefix>
<!-- Skip release:perform goal - use central-publishing-maven-plugin instead -->
<goals>prepare</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-javadoc-plugin.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.8.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>false</autoPublish>
<waitUntil>uploaded</waitUntil>
<checksums>required</checksums>
<deploymentName>Java API SDK (${project.version})</deploymentName>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>github</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>