|
49 | 49 | <logback.version>1.2.13</logback.version> |
50 | 50 |
|
51 | 51 | <maven.dependency.plugin.version>3.8.0</maven.dependency.plugin.version> |
| 52 | + <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version> |
52 | 53 | <maven.compiler.plugin.version>3.13.0</maven.compiler.plugin.version> |
53 | 54 | <maven.surefire.plugin.version>3.5.0</maven.surefire.plugin.version> |
54 | 55 | <maven.failsafe.plugin.version>3.5.0</maven.failsafe.plugin.version> |
|
165 | 166 | <groupId>org.apache.maven.plugins</groupId> |
166 | 167 | <artifactId>maven-dependency-plugin</artifactId> |
167 | 168 | <version>${maven.dependency.plugin.version}</version> |
| 169 | + <executions> |
| 170 | + <execution> |
| 171 | + <goals> |
| 172 | + <goal>properties</goal> |
| 173 | + </goals> |
| 174 | + </execution> |
| 175 | + </executions> |
| 176 | + </plugin> |
| 177 | + |
| 178 | + <plugin> |
| 179 | + <groupId>org.apache.maven.plugins</groupId> |
| 180 | + <artifactId>maven-resources-plugin</artifactId> |
| 181 | + <version>${maven.resources.plugin.version}</version> |
168 | 182 | </plugin> |
169 | 183 |
|
170 | 184 | <plugin> |
171 | 185 | <groupId>org.apache.maven.plugins</groupId> |
172 | 186 | <artifactId>maven-compiler-plugin</artifactId> |
173 | 187 | <version>${maven.compiler.plugin.version}</version> |
174 | 188 | <configuration> |
| 189 | + <release>11</release> |
175 | 190 | <source>${java.compile.version}</source> |
176 | 191 | <target>${java.compile.version}</target> |
177 | 192 | <compilerArgument>-Xlint:unchecked</compilerArgument> |
|
183 | 198 | <artifactId>maven-surefire-plugin</artifactId> |
184 | 199 | <version>${maven.surefire.plugin.version}</version> |
185 | 200 | <configuration> |
186 | | - <argLine>${test-arguments}</argLine> |
| 201 | + <!-- adding ${argLine} at the beginning is necessary if other plugins set it --> |
| 202 | + <argLine>${surefire-test-arguments}</argLine> |
187 | 203 | <systemPropertyVariables> |
188 | 204 | <net.bytebuddy.experimental>true</net.bytebuddy.experimental> |
189 | 205 | </systemPropertyVariables> |
|
347 | 363 | </properties> |
348 | 364 | </profile> |
349 | 365 |
|
| 366 | + <profile> |
| 367 | + <id>jvm-test-arguments-below-java-21</id> |
| 368 | + <activation> |
| 369 | + <jdk>[11,21)</jdk> |
| 370 | + </activation> |
| 371 | + <properties> |
| 372 | + <surefire-test-arguments>-Xshare:off</surefire-test-arguments> |
| 373 | + </properties> |
| 374 | + </profile> |
350 | 375 | <profile> |
351 | 376 | <id>jvm-test-arguments-java-21-and-more</id> |
352 | 377 | <activation> |
353 | 378 | <jdk>[21,)</jdk> |
354 | 379 | </activation> |
355 | 380 | <properties> |
356 | | - <test-arguments>-XX:+EnableDynamicAgentLoading</test-arguments> |
| 381 | + <surefire-test-arguments>-Xshare:off -javaagent:${org.mockito:mockito-core:jar}</surefire-test-arguments> |
357 | 382 | </properties> |
358 | 383 | </profile> |
359 | 384 |
|
|
0 commit comments