Closed jcrben closed 1 year ago
Here's the code in Groovy: https://github.com/apache/groovy/blob/GROOVY_2_4_X/src/main/org/codehaus/groovy/control/CompilerConfiguration.java
As you can see, there's nothing about Java 11 bytecode in Groovy 2.4. The code in GMavenPlus accurately reflects Groovy's support of bytecode versions.
I think you've misunderstood their note. It says
JenkinsPipelineUnit requires Java 11, since this is also the minimum version required by Jenkins.
I think this means that it requires Java 11 as the runtime (since Jenkins itself needs to run on Java 11). It doesn't require code to be compiled to Java 11 bytecode.
Thanks, that advice helped. I set up a system using maven-toolchains-plugins to compile with java 8 and run the surefire tests on jdk 11. Thanks 😄
I'm currently using this successfully https://github.com/jenkinsci/JenkinsPipelineUnit 1.14 but I want to upgrade to 1.19. The new version requires JDK 11.
After bumping to 1.19 and bumping the target byte code to 11
I see this:
Keep in mind that the pom.xml for the JenkinsPipelineUnit contains
which is why it's using Groovy 2.4.21
I noticed https://github.com/groovy/GMavenPlus/issues/256 which makes me think maybe 2.4.21 should be supported?
This project is work-related but I can come up with a sanitized version if you don't see anything off the top of your head.
I tried versions 1.13.1 2.1.0 and 3.0.0 of gmavenplus