Skip to content

ShadowJar failing on records because records requires ASM8 #679

@josephjthomas

Description

@josephjthomas

Please check the User Guide before submitting "how do I do 'x'?" questions!

Shadow Version

7.0.0

Gradle Version

7.0.2

Expected Behavior

Bumping ASM to 8 or higher to allow the usage of records in a shadowjar.

Actual Behavior

Build fails with java.lang.UnsupportedOperationException: Records requires ASM8 when using records and compiling with Java 16 targeting Java 16.
Full stacktrace: https://paste.gg/p/anonymous/6a11517d3d4c4f45b0056b70d6bcab05

Gradle Build Script(s)

/

Content of Shadow JAR (jar tf <jar file> - post link to GIST if too long)

We don't get here due failure on the build process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions