Skip to content

Commit

Permalink
Bump Java versions for build and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Egorand committed Oct 10, 2024
1 parent 83197b5 commit 765a6c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 19
java-version: 21

- name: Full build
if: matrix.os == 'ubuntu-latest'
Expand All @@ -52,7 +52,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 19
java-version: 21

- name: Prep docs
run: ./gradlew dokkaHtml
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 19
java-version: 21

- name: Upload Artifacts
run: ./gradlew publish
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ subprojects {
fun Project.setupCheckTask(testTaskName: String) {
// Copied from https://github.com/square/retrofit/blob/master/retrofit/build.gradle#L28.
// Create a test task for each supported JDK. We check every "LTS" + current version.
val versionsToTest = listOf(8, 11, 17, 19)
val versionsToTest = listOf(8, 11, 17, 21, 22)
for (majorVersion in versionsToTest) {
val jdkTest = tasks.register<Test>("testJdk$majorVersion") {
val javaToolchains = project.extensions.getByType(JavaToolchainService::class)
Expand Down

0 comments on commit 765a6c2

Please sign in to comment.