Seems like I’ll need to switch JDK versions within...
# announcements
h
Seems like I’ll need to switch JDK versions within the CI pipeline (compile first with JDK
1.8
then test with JDK
1.7
).
i
hhandoko: You can specify JVM to run maven surefire plugin with, use
forkMode
and
jvm
configuration properties, like here: https://github.com/JetBrains/kotlin/blob/1.1.2/libraries/stdlib/jre7/pom.xml#L97
h
Oh, what does that do? I thought
forkMode
is JVM forking for parallel test execution.
Silly me, switching JDK won’t work… I had another look at
forkMode
, but it raises another question. Is this simply running the test using JDK
1.7
(as it is seen on the env variable)?
i
forkMode
specifies that a new JVM process must be forked to run tests, and
jvm
specifies which JVM to use.