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

transformXXX tasks are failing due to missing JDK9 toolchain #506

Open
fzhinkin opened this issue Feb 3, 2025 · 6 comments
Open

transformXXX tasks are failing due to missing JDK9 toolchain #506

fzhinkin opened this issue Feb 3, 2025 · 6 comments

Comments

@fzhinkin
Copy link
Contributor

fzhinkin commented Feb 3, 2025

After 589ad80, transformXXX Gradle tasks require JDK9 to run and it's not that trivial to find and set it up for MacOS/Aarch64. It would be nice to either setup auto-provisioning of some sort or relax the version requirement to use any JDK version higher or equal to 9.

Right now, build configuration fails with:

Configuration cache state could not be cached: field `javaLauncher` of task `:atomicfu:transformBOTH` of type `org.gradle.api.tasks.JavaExec`: error writing value of type 'org.gradle.api.internal.provider.DefaultProperty'
> Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=9, vendor=any vendor, implementation=vendor-specific} for MAC_OS on aarch64.
   > No matching toolchain could be found in the locally installed toolchains or the configured toolchain download repositories.

@fzhinkin
Copy link
Contributor Author

fzhinkin commented Feb 3, 2025

@mvicsokolova, @Tapchicoma PTAL

@Tapchicoma
Copy link
Contributor

Probably, we could instead JDK 9 use JDK 11 in tests. @mvicsokolova WDYT?

@mvicsokolova
Copy link
Collaborator

Yes, I guess it's enough to fix launcherForJdk(9) in transform tasks here

@fzhinkin
Copy link
Contributor Author

fzhinkin commented Feb 3, 2025

Setting up the toolchain auto-provisioning (via foojay resolver plugin) seems like something reasonable to do despite bumping the version.

@Tapchicoma
Copy link
Contributor

foojay plugin is already being applied in the project here

@Tapchicoma
Copy link
Contributor

Tapchicoma commented Feb 3, 2025

The main problem is JDK 9 release for Mac/arm64 platform which seems to be missing in the official providers.

mvicsokolova added a commit that referenced this issue Feb 4, 2025
* Set JDK toolchain version to 11 for transform tasks

Fixes #506
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants