Skip to content

Run tests on each major JDK version#3713

Merged
JakeWharton merged 1 commit intomasterfrom
jw/vary-tests/2022-03-28
Mar 29, 2022
Merged

Run tests on each major JDK version#3713
JakeWharton merged 1 commit intomasterfrom
jw/vary-tests/2022-03-28

Conversation

@JakeWharton
Copy link
Copy Markdown
Collaborator

We only need to build on a single JDK (the latest, 18) and target the lowest supported (8).

We only need to build on a single JDK (the latest, 18) and target the lowest supported (8).
Comment thread retrofit/build.gradle
}

// Create a test task for each supported JDK.
(8..17).each { majorVersion ->
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

18 hasn't been deployed by Adoptium yet, but the 18 on the CI runner will be used by the normal 'test' task.

Comment thread retrofit/build.gradle
Comment on lines +32 to +33
// Adoptium JDK 9 cannot extract on Linux or Mac OS.
if (majorVersion == 9) return
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think this is a Gradle bug, but I'm not sure. I don't really care since it's only one really old JDK.

@JakeWharton JakeWharton requested a review from swankjesse March 28, 2022 18:45
Copy link
Copy Markdown
Member

@oldergod oldergod left a comment

Choose a reason for hiding this comment

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

:niiice:

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