Skip to content

Commit 0e5910d

Browse files
authored
Merge branch 'development' into fix/snyk
2 parents 751a721 + fee3918 commit 0e5910d

33 files changed

+15620
-3183
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,3 +272,5 @@ src/main/resources/
272272
/src/main/java/com/contentstack/sdk/models/
273273
/.vscode/
274274
/.vscode/
275+
/docs/
276+
INTEGRATION-TESTS-GUIDE.md

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
## v2.3.2
4+
5+
### Jan 05, 2026
6+
- Snyk Fixes
7+
38
## v2.3.1
49

510
### Date: 03-Nov-2025

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2012 - 2025 Contentstack
3+
Copyright (c) 2012 - 2026 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pom.xml

Lines changed: 66 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.contentstack.sdk</groupId>
77
<artifactId>java</artifactId>
8-
<version>2.3.1</version>
8+
<version>2.3.2</version>
99
<packaging>jar</packaging>
1010
<name>contentstack-java</name>
1111
<description>Java SDK for Contentstack Content Delivery API</description>
@@ -172,6 +172,13 @@
172172
<artifactId>json-simple</artifactId>
173173
<version>${json-simple-version}</version>
174174
<scope>compile</scope>
175+
<!-- Exclude junit - it was incorrectly included as compile dep in json-simple -->
176+
<exclusions>
177+
<exclusion>
178+
<groupId>junit</groupId>
179+
<artifactId>junit</artifactId>
180+
</exclusion>
181+
</exclusions>
175182
</dependency>
176183

177184
<dependency>
@@ -215,6 +222,34 @@
215222
<artifactId>kotlin-stdlib</artifactId>
216223
<version>2.1.0</version>
217224
</dependency>
225+
<!-- Fix CVE-2025-48924: Uncontrolled Recursion in commons-lang3 -->
226+
<dependency>
227+
<groupId>org.apache.commons</groupId>
228+
<artifactId>commons-lang3</artifactId>
229+
<version>3.18.0</version>
230+
</dependency>
231+
<!-- Fix Spring vulnerabilities from contentstack-utils transitive deps -->
232+
<dependency>
233+
<groupId>org.springframework</groupId>
234+
<artifactId>spring-core</artifactId>
235+
<version>6.2.11</version>
236+
</dependency>
237+
<dependency>
238+
<groupId>org.springframework</groupId>
239+
<artifactId>spring-beans</artifactId>
240+
<version>6.2.11</version>
241+
</dependency>
242+
<dependency>
243+
<groupId>org.springframework</groupId>
244+
<artifactId>spring-web</artifactId>
245+
<version>6.2.11</version>
246+
</dependency>
247+
<!-- Fix CVE-2020-15250: junit pulled by json-simple -->
248+
<dependency>
249+
<groupId>junit</groupId>
250+
<artifactId>junit</artifactId>
251+
<version>4.13.2</version>
252+
</dependency>
218253
</dependencies>
219254
</dependencyManagement>
220255
<build>
@@ -277,13 +312,38 @@
277312
<artifactId>maven-surefire-plugin</artifactId>
278313
<version>2.22.2</version>
279314
<configuration>
280-
<!-- Run only API tests (*IT.java) by default -->
281-
<includes>
282-
<include>**/*IT.java</include>
283-
</includes>
315+
<!-- Tests are skipped by default; use -Dtest to specify which tests to run -->
316+
<!-- Example: -Dtest='*IT' for integration tests, -Dtest='Test*' for unit tests -->
284317
<skipTests>true</skipTests>
318+
<!-- OPTIMIZED: Parallel execution with controlled concurrency -->
319+
<parallel>classes</parallel>
320+
<threadCount>4</threadCount>
321+
<perCoreThreadCount>false</perCoreThreadCount>
322+
<useUnlimitedThreads>false</useUnlimitedThreads>
323+
<!-- Reuse forks for better performance -->
324+
<reuseForks>true</reuseForks>
325+
<forkCount>2</forkCount>
326+
<!-- Increase timeout for slow tests -->
327+
<forkedProcessTimeoutInSeconds>500</forkedProcessTimeoutInSeconds>
328+
<!-- Better memory management -->
329+
<!-- @{argLine} allows JaCoCo to inject its agent -->
330+
<argLine>@{argLine} -Xmx2048m -XX:MaxMetaspaceSize=512m</argLine>
285331
</configuration>
286332
</plugin>
333+
334+
<plugin>
335+
<groupId>org.apache.maven.plugins</groupId>
336+
<artifactId>maven-surefire-report-plugin</artifactId>
337+
<version>2.22.2</version>
338+
<executions>
339+
<execution>
340+
<phase>test</phase>
341+
<goals>
342+
<goal>report-only</goal>
343+
</goals>
344+
</execution>
345+
</executions>
346+
</plugin>
287347

288348
<plugin>
289349
<groupId>org.apache.maven.plugins</groupId>
@@ -382,7 +442,7 @@
382442
</goals>
383443
<configuration>
384444
<dataFile>target/jacoco.exec</dataFile>
385-
<outputDirectory>target/jacoco-ut</outputDirectory>
445+
<!-- outputDirectory removed - uses default: target/site/jacoco/ -->
386446
</configuration>
387447
</execution>
388448
</executions>

src/test/java/com/contentstack/sdk/AssetLibraryIT.java

Lines changed: 0 additions & 164 deletions
This file was deleted.

0 commit comments

Comments
 (0)