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

gradle jvm toolchain support #137

Open
dsvensson opened this issue Apr 30, 2024 · 1 comment
Open

gradle jvm toolchain support #137

dsvensson opened this issue Apr 30, 2024 · 1 comment

Comments

@dsvensson
Copy link

When using gradle jvm toolchain feature the build may produce class files that this plugin is unable to read. For example the https://github.com/etiennestuder/gradle-jooq-plugin plugin supports jvm toolchain, which I set to 21/corretto. When running gradle in Github CI it uses an older java to start the gradle daemon, then the jvm toolchain enabled plugin does its stuff in the target jvm, and then this plugin tries to read the class files which fails.

So I think to reproduce this you would do:

  • java in path of version 17 or something
  • jvm toolchain configured to 21
  • use a plugin that is jvm toolchain aware
  • try to use this plugin, spot the class file version failure

The workaround for CI would be to install java 21 in a previous step, but it would be convenient if the toolchain was respected, this is a plugin living under the gradle umbrella after all.

@bigdaz
Copy link
Member

bigdaz commented Apr 30, 2024

Did you encounter this issue applying the plugin directly, or using the GitHub action?
Can you please try to create a reproducer as a public GitHub project?
I don't really understand what the issue is.

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

2 participants