|
5 | 5 | <modelVersion>4.0.0</modelVersion> |
6 | 6 | <groupId>com.contentstack.sdk</groupId> |
7 | 7 | <artifactId>java</artifactId> |
8 | | - <version>2.3.1</version> |
| 8 | + <version>2.3.2</version> |
9 | 9 | <packaging>jar</packaging> |
10 | 10 | <name>contentstack-java</name> |
11 | 11 | <description>Java SDK for Contentstack Content Delivery API</description> |
|
172 | 172 | <artifactId>json-simple</artifactId> |
173 | 173 | <version>${json-simple-version}</version> |
174 | 174 | <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> |
175 | 182 | </dependency> |
176 | 183 |
|
177 | 184 | <dependency> |
|
215 | 222 | <artifactId>kotlin-stdlib</artifactId> |
216 | 223 | <version>2.1.0</version> |
217 | 224 | </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> |
218 | 253 | </dependencies> |
219 | 254 | </dependencyManagement> |
220 | 255 | <build> |
|
277 | 312 | <artifactId>maven-surefire-plugin</artifactId> |
278 | 313 | <version>2.22.2</version> |
279 | 314 | <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 --> |
284 | 317 | <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> |
285 | 331 | </configuration> |
286 | 332 | </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> |
287 | 347 |
|
288 | 348 | <plugin> |
289 | 349 | <groupId>org.apache.maven.plugins</groupId> |
|
382 | 442 | </goals> |
383 | 443 | <configuration> |
384 | 444 | <dataFile>target/jacoco.exec</dataFile> |
385 | | - <outputDirectory>target/jacoco-ut</outputDirectory> |
| 445 | + <!-- outputDirectory removed - uses default: target/site/jacoco/ --> |
386 | 446 | </configuration> |
387 | 447 | </execution> |
388 | 448 | </executions> |
|
0 commit comments