|
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> |
|
20 | 20 | <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
21 | 21 | <maven-javadoc-plugin.version>3.4.1</maven-javadoc-plugin.version> |
22 | 22 | <dotenv-source.version>3.0.0</dotenv-source.version> |
23 | | - <rxjava-source.version>3.1.10</rxjava-source.version> |
24 | | - <retrofit-source.version>2.11.0</retrofit-source.version> |
| 23 | + <rxjava-source.version>3.1.11</rxjava-source.version> |
| 24 | + <retrofit-source.version>3.0.0</retrofit-source.version> |
25 | 25 | <loggin.version>5.1.0</loggin.version> |
26 | 26 | <jococo-plugin.version>0.8.5</jococo-plugin.version> |
27 | 27 | <lombok-source.version>1.18.36</lombok-source.version> |
|
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> |
178 | 185 | <groupId>com.fasterxml.jackson.core</groupId> |
179 | 186 | <artifactId>jackson-databind</artifactId> |
180 | | - <version>2.18.2</version> |
| 187 | + <version>2.19.2</version> |
181 | 188 | </dependency> |
182 | 189 | <dependency> |
183 | 190 | <groupId>com.slack.api</groupId> |
|
187 | 194 | <dependency> |
188 | 195 | <groupId>org.jetbrains</groupId> |
189 | 196 | <artifactId>annotations</artifactId> |
190 | | - <version>24.0.1</version> |
| 197 | + <version>26.0.2</version> |
191 | 198 | </dependency> |
192 | 199 | <dependency> |
193 | 200 | <groupId>com.squareup.okhttp3</groupId> |
|
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> |
|
271 | 306 | </executions> |
272 | 307 | </plugin> |
273 | 308 |
|
| 309 | + <!-- Surefire Plugin for API Tests --> |
274 | 310 | <plugin> |
275 | 311 | <groupId>org.apache.maven.plugins</groupId> |
276 | 312 | <artifactId>maven-surefire-plugin</artifactId> |
277 | 313 | <version>2.22.2</version> |
278 | 314 | <configuration> |
| 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 --> |
279 | 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> |
280 | 331 | </configuration> |
281 | 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> |
282 | 347 |
|
283 | 348 | <plugin> |
284 | 349 | <groupId>org.apache.maven.plugins</groupId> |
|
377 | 442 | </goals> |
378 | 443 | <configuration> |
379 | 444 | <dataFile>target/jacoco.exec</dataFile> |
380 | | - <outputDirectory>target/jacoco-ut</outputDirectory> |
| 445 | + <!-- outputDirectory removed - uses default: target/site/jacoco/ --> |
381 | 446 | </configuration> |
382 | 447 | </execution> |
383 | 448 | </executions> |
|
0 commit comments