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

Test Java 16 and 17 #1291

Merged
merged 1 commit into from
Dec 4, 2021
Merged

Test Java 16 and 17 #1291

merged 1 commit into from
Dec 4, 2021

Conversation

ob-stripe
Copy link
Contributor

r? @stripe/api-library-reviewers

Bump Gradle and dependencies, and start testing Java 16 and 17.

Due to https://github.com/google/google-java-format#jdk-16 I had to add some --add-exports arguments to the JVM via the org.gradle.jvmargs variable in gradle.properties.

However Java 1.8 does not support --add-exports, so what I did is add a conditional step in .github/workflows/ci.yml to comment out these arguments when testing Java 1.8. It's kinda gross but I could not find a better way to do this.

Note that this does mean that running the test suite locally with Java 1.8 will fail unless you go and manually comment out the --add-exports lines in gradle.properties.

Copy link
Contributor

@dcr-stripe dcr-stripe left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks Olivier!

@stripe-ci stripe-ci assigned ob-stripe and unassigned dcr-stripe Dec 3, 2021
@ob-stripe ob-stripe merged commit ab66555 into master Dec 4, 2021
@ob-stripe ob-stripe deleted the ob-java-17 branch December 14, 2021 19:47
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.

2 participants