Skip to content

Use toolchains for java tasks #181

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

Merged
merged 4 commits into from
Feb 6, 2024
Merged

Conversation

fzhinkin
Copy link
Collaborator

@fzhinkin fzhinkin commented Jan 25, 2024

Gradle tasks configured to run JVM benchmarks didn't use the project's Java toolchain and instead used the same Java executables as the Gradle did. That could lead to a scenario when the project had a Java toolchain with a higher version than the version of Java Gradle was launched with. In such a scenario benchmark compilation would fail.

This PR brings toolchain awareness to related Gradle tasks.

Fixes #176

@fzhinkin fzhinkin marked this pull request as ready for review January 25, 2024 12:31
@fzhinkin fzhinkin requested a review from qurbonzoda January 25, 2024 12:31
Copy link
Contributor

@qurbonzoda qurbonzoda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if a guide was provided on how to specify toolchains for JVM benchmarks, considering the fact that it doesn’t seem to be easy to infer the use of org.gradle.toolchains.foojay-resolver-convention plugin.
It can be added to #182 later though.

@qurbonzoda
Copy link
Contributor

Please squash the fixup commits before merging.

@qurbonzoda qurbonzoda self-requested a review February 6, 2024 13:49
@fzhinkin fzhinkin merged commit 905004f into master Feb 6, 2024
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.

Plugin's tasks ignore configured java toolchain
2 participants