|
20 | 20 | <skip.tests>false</skip.tests> |
21 | 21 | <!-- this will throw an error if we use wrong apis --> |
22 | 22 | <maven.compiler.release>11</maven.compiler.release> |
| 23 | + <org.mockito.jar>${settings.localRepository}/org/mockito/mockito-core/${org.mockito.version}/mockito-core-${org.mockito.version}.jar</org.mockito.jar> |
| 24 | + <org.mockito.agent.argline>-javaagent:${org.mockito.jar}</org.mockito.agent.argline> |
23 | 25 | </properties> |
24 | 26 |
|
25 | 27 | <name>OpenFeature Java SDK</name> |
|
212 | 214 | <dependency> |
213 | 215 | <groupId>net.bytebuddy</groupId> |
214 | 216 | <artifactId>byte-buddy</artifactId> |
215 | | - <version>1.18.0</version> |
| 217 | + <version>1.18.1</version> |
216 | 218 | <scope>test</scope> |
217 | 219 | </dependency> |
218 | 220 |
|
219 | 221 | <dependency> |
220 | 222 | <groupId>net.bytebuddy</groupId> |
221 | 223 | <artifactId>byte-buddy-agent</artifactId> |
222 | | - <version>1.18.0</version> |
| 224 | + <version>1.18.1</version> |
223 | 225 | <scope>test</scope> |
224 | 226 | </dependency> |
225 | 227 | <!-- End mockito workaround--> |
|
300 | 302 | <artifactId>maven-surefire-plugin</artifactId> |
301 | 303 | <version>3.5.4</version> |
302 | 304 | <configuration> |
303 | | - <forkCount>1</forkCount> |
304 | | - <reuseForks>false</reuseForks> |
305 | 305 | <argLine> |
306 | 306 | ${surefireArgLine} |
| 307 | + ${org.mockito.agent.argline} |
307 | 308 | --add-opens java.base/java.util=ALL-UNNAMED |
308 | 309 | --add-opens java.base/java.lang=ALL-UNNAMED |
309 | 310 | </argLine> |
|
321 | 322 | <configuration> |
322 | 323 | <argLine> |
323 | 324 | ${surefireArgLine} |
| 325 | + ${org.mockito.agent.argline} |
324 | 326 | </argLine> |
325 | 327 | </configuration> |
326 | 328 | </plugin> |
|
329 | 331 | <plugin> |
330 | 332 | <groupId>org.apache.maven.plugins</groupId> |
331 | 333 | <artifactId>maven-jar-plugin</artifactId> |
332 | | - <version>3.4.2</version> |
| 334 | + <version>3.5.0</version> |
333 | 335 | <configuration> |
334 | 336 | <archive> |
335 | 337 | <manifestEntries> |
|
364 | 366 | <include>**/*CT.java</include> |
365 | 367 | </includes> |
366 | 368 | <failIfNoTests>true</failIfNoTests> |
| 369 | + <argLine>${org.mockito.agent.argline}</argLine> |
367 | 370 | </configuration> |
368 | 371 | </execution> |
369 | 372 | </executions> |
|
505 | 508 | <dependency> |
506 | 509 | <groupId>com.puppycrawl.tools</groupId> |
507 | 510 | <artifactId>checkstyle</artifactId> |
508 | | - <version>12.1.1</version> |
| 511 | + <version>12.1.2</version> |
509 | 512 | </dependency> |
510 | 513 | </dependencies> |
511 | 514 | <executions> |
|
521 | 524 | <plugin> |
522 | 525 | <groupId>com.diffplug.spotless</groupId> |
523 | 526 | <artifactId>spotless-maven-plugin</artifactId> |
524 | | - <version>3.0.0</version> |
| 527 | + <version>3.1.0</version> |
525 | 528 | <configuration> |
526 | 529 | <!-- optional: limit format enforcement to just the files changed by this feature branch --> |
527 | 530 | <!-- <ratchetFrom>origin/main</ratchetFrom>--> |
|
740 | 743 | <version>3.5.4</version> |
741 | 744 | <configuration> |
742 | 745 | <argLine> |
| 746 | + ${org.mockito.agent.argline} |
743 | 747 | ${surefireArgLine} |
744 | 748 | </argLine> |
745 | 749 | </configuration> |
|
0 commit comments