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

Needs Java 19 support for minimize() #814

Closed
Jire opened this issue Dec 29, 2022 · 2 comments
Closed

Needs Java 19 support for minimize() #814

Jire opened this issue Dec 29, 2022 · 2 comments
Milestone

Comments

@Jire
Copy link

Jire commented Dec 29, 2022

Error Unsupported class file major version 63

When using Gradle toolchains via Kotlin extension:

kotlin {
    jvmToolchain {
        languageVersion.set(JavaLanguageVersion.of(19))
    }
}

With latest Kotlin 1.8.0 (and 1.8.0-RC2)

Only an issue when using minimize()

@Jire Jire changed the title Needs Java 19 support Needs Java 19 support for minimize() Dec 29, 2022
@kjetilv
Copy link

kjetilv commented Dec 31, 2022

This seems to be on main already. I vote for a release :-)

@codecholeric
Copy link
Contributor

Not sure if I should create a separate issue, but I also run into Unsupported class file major version 63 when I try to run my build with JDK 19, even without minimize()

org.gradle.api.GradleException: Could not add file '...' to ZIP '...jar'.
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
...
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63
        at shadow.org.objectweb.asm.ClassReader.<init>(ClassReader.java:199)

Would it be possible to create a new release with 404c7c2 included? (Or maybe already upgrade to 9.4 and release that, since meanwhile there is another ASM release? I created #817, hope it's not already included somewhere and I caught it right...)

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

No branches or pull requests

4 participants