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

Upgrade to ASM 9.2 for JDK 18 support. #698

Merged
merged 1 commit into from
Aug 1, 2021

Conversation

vyazelenko
Copy link
Contributor

Currently running Gradle build which uses JavaToolchanin configured with JDK 18 results in this exception from the Shadow plugin:

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 62
        at shadow.org.objectweb.asm.ClassReader.<init>(ClassReader.java:196)
        at shadow.org.objectweb.asm.ClassReader.<init>(ClassReader.java:177)
        at shadow.org.objectweb.asm.ClassReader.<init>(ClassReader.java:163)
        at shadow.org.objectweb.asm.ClassReader.<init>(ClassReader.java:284)
        at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.remapClass(ShadowCopyAction.groovy:342)
        at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.remapClass(ShadowCopyAction.groovy:328)
        at com.github.jengelman.gradle.plugins.shadow.tasks.ShadowCopyAction$StreamAction.visitFile(ShadowCopyAction.groovy:242)
        ... 150 more

@johnrengelman johnrengelman added this to the 7.1 milestone Aug 1, 2021
@johnrengelman johnrengelman merged commit db88d31 into GradleUp:master Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants