File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change 6262 --add-opens java.base/java.util=ALL-UNNAMED
6363 --add-opens java.base/java.lang=ALL-UNNAMED
6464 </surefireArgLine >
65+ <skip .tests>false</skip .tests>
66+ <!-- this will throw an error if we use wrong apis -->
67+ <maven .compiler.release>8</maven .compiler.release>
6568 </properties >
6669
6770 <dependencies >
97100 <dependency >
98101 <groupId >org.mockito</groupId >
99102 <artifactId >mockito-core</artifactId >
100- <version >4.11 .0</version >
103+ <version >5.2 .0</version >
101104 <scope >test</scope >
102105 </dependency >
103106
236239 <plugin >
237240 <artifactId >maven-compiler-plugin</artifactId >
238241 <version >3.13.0</version >
239-
240- <configuration >
241- <source >8</source >
242- <target >8</target >
243- </configuration >
244242 </plugin >
245243
246244 <!-- automatically derive a module name from the groupId and artifactId -->
545543 <id >java8</id >
546544 <properties >
547545 <toolchain .jdk.version>(1.8,9)</toolchain .jdk.version>
546+ <skip .tests>true</skip .tests>
548547 </properties >
549548
550549 <build >
566565 <artifactId >maven-surefire-plugin</artifactId >
567566 <version >3.5.2</version >
568567 <configuration >
569- <skipTests >true </skipTests >
568+ <skipTests >${skip.tests} </skipTests >
570569 </configuration >
571570 </plugin >
571+ <plugin >
572+ <groupId >org.apache.maven.plugins</groupId >
573+ <artifactId >maven-compiler-plugin</artifactId >
574+ <version >3.13.0</version >
575+ <executions >
576+ <execution >
577+ <id >default-testCompile</id >
578+ <phase >test-compile</phase >
579+ <goals >
580+ <goal >testCompile</goal >
581+ </goals >
582+ <configuration >
583+ <skip >true</skip >
584+ </configuration >
585+ </execution >
586+ </executions >
587+ </plugin >
572588 </plugins >
573589 </build >
574590 </profile >
You can’t perform that action at this time.
0 commit comments