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

Specify Java 8 target for the generator .jar #15

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

darronschall
Copy link
Contributor

This ensures that we consistently build the generator, rather than it defaulting to the java version of the system building the artifact.

This fixes issues such as:

Caused by: java.lang.UnsupportedClassVersionError: com/collectiveidea/twirp/Generator has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 55.0

This ensures that we consistently build the generator, rather than it defaulting to the java version of the system building the artifact.

This fixes issues such as:

> Caused by: java.lang.UnsupportedClassVersionError: com/collectiveidea/twirp/Generator has been compiled by a more recent version of the Java Runtime (class file version 66.0), this version of the Java Runtime only recognizes class file versions up to 55.0
@darronschall darronschall merged commit 5b78c63 into main Oct 14, 2024
2 checks passed
@darronschall darronschall deleted the ensure-generator-is-java-8-compatible branch October 14, 2024 13:50
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.

1 participant