Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JDK 19 support #230

Closed
Joan-Lara-Miquel opened this issue Oct 11, 2022 · 1 comment
Closed

Add JDK 19 support #230

Joan-Lara-Miquel opened this issue Oct 11, 2022 · 1 comment
Assignees
Milestone

Comments

@Joan-Lara-Miquel
Copy link

Hi,

once updating my spring boot project to Java 19, via some properties:

<properties> 
     <java.version>19</java.version>
</properties>

I get the following error when running the compile and compileTests goals:

[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:2.0.0:compileTests (default) on project foo: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:2.0.0:compileTests failed: Unrecognized target bytecode: '19'. This check can be skipped with 'skipBytecodeCheck', but this may result in a different target bytecode being used.

This is my plugin setup:

<plugin>
        <groupId>org.codehaus.gmavenplus</groupId>
        <artifactId>gmavenplus-plugin</artifactId>
        <version>2.0.0</version>
        <executions>
          <execution>
            <goals>
              <goal>compile</goal>
              <goal>compileTests</goal>
            </goals>
          </execution>
        </executions>
</plugin>

Can 19 be added to the bytecode verifications?

keeganwitt added a commit that referenced this issue Oct 11, 2022
Recognize target bytecode 19 (closes #230)
@keeganwitt keeganwitt self-assigned this Oct 11, 2022
@keeganwitt keeganwitt added this to the 2.0.1 milestone Oct 11, 2022
@keeganwitt
Copy link
Member

keeganwitt commented Oct 11, 2022

Thank you for reporting this!

This will be in the next release, which I'll aim to do this week. In the meantime, you can temporarily skip the bytecode check to suppress this failure. Just be aware this requires Groovy >= 4.0.2 to use bytecode 19.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants