Skip to content

Support Java 25 on Gradle 8 #35111

@carlosame

Description

@carlosame

Expected Behavior

Gradle 8 should run on Java 25, to have a Gradle version that can be run on the full 11-25 LTS spectrum.

Current Behavior (optional)

Version 8.14.3 fails with Java 25:

FAILURE: Build failed with an exception.

* What went wrong:
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 69
> Unsupported class file major version 69

Context

I have several library projects where I have to build with Java 11 to be 100% sure that they are compatible with that version. I cannot just use --release there, because I use non-standard modules like jdk.xml.dom that aren't available if one uses that switch.

On those projects, I want to be able to also build with Java 25, for the benefit of people running the latest LTS.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions