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

Fix Gradle build error #64

Merged
merged 1 commit into from
Oct 4, 2022
Merged

Fix Gradle build error #64

merged 1 commit into from
Oct 4, 2022

Conversation

dirkgroot
Copy link
Collaborator

@dirkgroot dirkgroot commented Oct 4, 2022

The Gradle build action on GitHub fails with the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not open cp_init generic class cache for initialization script '/home/runner/.gradle/init.d/build-result-capture.init.gradle' (/home/runner/.gradle/caches/7.5.1/scripts/1e64q25zpdl12rebgg3luboth).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63

See https://github.com/avisi-cloud/structurizr-site-generatr/actions/runs/3180082333/jobs/5183611488

Reverting back to using JDK 18 for building the project fixes this issue.

Gradle doesn't support JDK 19 yet, which seems to be the cause of the build error.
@dirkgroot dirkgroot marked this pull request as ready for review October 4, 2022 07:59
@dirkgroot dirkgroot merged commit 1b3cd67 into main Oct 4, 2022
@dirkgroot dirkgroot deleted the fix-gradle-error branch October 4, 2022 08:33
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.

None yet

1 participant