Skip to content

Instrumentation of multi-release JARs should not fail on newer versions #25434

@mlopatkin

Description

@mlopatkin

Expected Behavior

When the multi-release JAR of the buildscript classpath contains a versioned directory for Java version that the current Gradle doesn't support, Gradle should be able to instrument the root directory and supported versioned directories without failures.

Current Behavior (optional)

The instrumentation fails when it tries to instrument the classes in the unsupported versioned directory.

Context

This issue makes it impossible to use newer libraries as part of the buildscript classpath, even if the library itself is backwards-compatible. It defeats the purpose of the MR-JAR.

See also #24390 and #24430.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions