Skip to content

Commit baff3f3

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

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

pom.xml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
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>
6566
</properties>
6667

6768
<dependencies>
@@ -97,7 +98,7 @@
9798
<dependency>
9899
<groupId>org.mockito</groupId>
99100
<artifactId>mockito-core</artifactId>
100-
<version>4.11.0</version>
101+
<version>5.2.0</version>
101102
<scope>test</scope>
102103
</dependency>
103104

@@ -238,8 +239,8 @@
238239
<version>3.13.0</version>
239240

240241
<configuration>
241-
<source>8</source>
242-
<target>8</target>
242+
<!-- this will throw an error if we use wrong apis -->
243+
<release>8</release>
243244
</configuration>
244245
</plugin>
245246

@@ -545,6 +546,7 @@
545546
<id>java8</id>
546547
<properties>
547548
<toolchain.jdk.version>(1.8,9)</toolchain.jdk.version>
549+
<skip.tests>true</skip.tests>
548550
</properties>
549551

550552
<build>
@@ -566,9 +568,26 @@
566568
<artifactId>maven-surefire-plugin</artifactId>
567569
<version>3.5.2</version>
568570
<configuration>
569-
<skipTests>true</skipTests>
571+
<skipTests>${skip.tests}</skipTests>
570572
</configuration>
571573
</plugin>
574+
<plugin>
575+
<groupId>org.apache.maven.plugins</groupId>
576+
<artifactId>maven-compiler-plugin</artifactId>
577+
<version>3.13.0</version>
578+
<executions>
579+
<execution>
580+
<id>default-testCompile</id>
581+
<phase>test-compile</phase>
582+
<goals>
583+
<goal>testCompile</goal>
584+
</goals>
585+
<configuration>
586+
<skip>true</skip>
587+
</configuration>
588+
</execution>
589+
</executions>
590+
</plugin>
572591
</plugins>
573592
</build>
574593
</profile>

0 commit comments

Comments
 (0)