Skip to content

Plugin v 3.0.0 fails with Java 21 and Groovy 4.0.15 #276

@jgenoctr

Description

@jgenoctr

When I attempt to use GMavenPlus v 3.0.0 with Groovy 4.0.15 and Java 21, the result is the following failure"
[ERROR] Failed to execute goal org.codehaus.gmavenplus:gmavenplus-plugin:3.0.0:compileTests (default) on project connectors: Execution default of goal org.codehaus.gmavenplus:gmavenplus-plugin:3.0.0:compileTests failed: Unrecognized target bytecode: '21'. This check can be skipped with 'skipBytecodeCheck', but this may result in a different target bytecode being used. -> [Help 1]

When I follow the suggestion given above, by adding
<skipBytecodeCheck>true</skipBytecodeCheck>
to the POM, the result is the following:

[INFO] --- gplus:3.0.0:compileTests (default) @ connectors ---
[INFO] Using isolated classloader, without GMavenPlus classpath.
[INFO] Using Groovy 4.0.15 to perform compileTests.
[ERROR] Your Groovy version (4.0.15) doesn't support compilation. The minimum version of Groovy required is 1.5.0. Skipping compiling.

I also realize that Java 21 was just released.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions