Skip to content

Commit c95134f

Browse files
committed
Add kotlinx-coroutines-core test under JDK16 as additional execution,
preserving default-test execution of maven-surefire-plugin.
1 parent a888975 commit c95134f

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

kotlinx-coroutines-core/pom.xml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
<packaging>jar</packaging>
3030

3131
<properties>
32+
<!-- makes sure core is portable to lowest common denominator -->
3233
<kotlin.compiler.jdkHome>${env.JDK_16}</kotlin.compiler.jdkHome>
3334
</properties>
3435

@@ -39,11 +40,19 @@
3940
<plugins>
4041
<plugin>
4142
<artifactId>maven-surefire-plugin</artifactId>
42-
<configuration>
43-
<forkMode>once</forkMode>
44-
<jvm>${env.JDK_16}/bin/java</jvm>
45-
<argLine>-ea -Xmx1g -Xms1g</argLine>
46-
</configuration>
43+
<executions>
44+
<!-- fork tests under jdk 1.6 as an additional execution -->
45+
<execution>
46+
<id>jdk16-test</id>
47+
<phase>test</phase>
48+
<goals><goal>test</goal></goals>
49+
<configuration>
50+
<forkMode>once</forkMode>
51+
<jvm>${env.JDK_16}/bin/java</jvm>
52+
<argLine>-ea -Xmx1g -Xms1g</argLine>
53+
</configuration>
54+
</execution>
55+
</executions>
4756
</plugin>
4857
<plugin>
4958
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)