Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The official Java SDK for the [Smartling Translation Management Platform](https:
### Core Dependencies

- RESTEasy 4.7.10 (JAX-RS client implementation)
- Jackson 2.15.4 (JSON serialization)
- Jackson 2.18.9 (JSON serialization)
- Apache HttpClient 4.5.14 (HTTP transport)
- SLF4J 2.0.17 (Logging facade)

Expand Down
86 changes: 85 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
<org.powermock.version>2.0.4</org.powermock.version>
<org.jboss.resteasy.version>4.7.10.Final</org.jboss.resteasy.version>
<apache.httpclient.version>4.5.14</apache.httpclient.version>
<jackson.version>2.15.4</jackson.version>
<jackson.version>2.18.9</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>
Expand All @@ -39,6 +42,16 @@

<dependencyManagement>
<dependencies>
<!-- AEM-1043: 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>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
Expand Down Expand Up @@ -74,6 +87,77 @@
<artifactId>resteasy-multipart-provider</artifactId>
<version>${org.jboss.resteasy.version}</version>
</dependency>
<!-- AEM-1043: 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.
Clears CVE-2024-47554, CVE-2025-52999, CVE-2022-42004, CVE-2025-7962,
CVE-2024-21742. -->
<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>
<!-- AEM-1043: the rest of the jackson stack that RESTEasy pulls transitively must be
declared directly too, so the jackson-bom version (2.18.9) propagates to downstream
consumers via nearest-wins. Otherwise the connector gets these at RESTEasy's 2.12.6,
which is an unsupported mismatch against jackson-databind 2.18.9 (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>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<version>${jakarta.mail.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.ws.rs</groupId>
<artifactId>jboss-jaxrs-api_2.0_spec</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public RestApiContextResolver(final Map<Class<?>, JsonDeserializer<?>> classJson
deserializerModule.addSerializer(klass, (JsonSerializer) classJsonSerializerMap.get(klass));

objectMapper.registerModule(deserializerModule);
objectMapper.registerModule(new KotlinModule());
objectMapper.registerModule(new KotlinModule.Builder().build());

this.objectMapper = objectMapper;
}
Expand Down
Loading