Skip to content

Commit c7b436e

Browse files
committed
fixup: release to 8, and do not testcompile on java8
Signed-off-by: Simon Schrottner <[email protected]>
1 parent b137669 commit c7b436e

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

pom.xml

+23-7
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
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>
@@ -97,7 +100,7 @@
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

@@ -236,11 +239,6 @@
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 -->
@@ -545,6 +543,7 @@
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>
@@ -566,9 +565,26 @@
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>

0 commit comments

Comments
 (0)