Skip to content

Commit 3c52ccd

Browse files
committed
Support JDK v21+ only (#1920)
1 parent 0154f86 commit 3c52ccd

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/benchmark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77
contents: read
88

99
env:
10-
JDK: '17'
10+
JDK: '21'
1111
DISTRIBUTION: 'zulu'
1212
GRADLE_COMMAND: './gradlew --no-daemon'
1313

.github/workflows/branch_snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-java@v4
3333
with:
3434
distribution: 'temurin'
35-
java-version: 17
35+
java-version: 21
3636
cache: 'gradle'
3737
- name: Build snapshot
3838
run: ./gradlew build snapshot -Prelease.version="$BUILD_VERSION"

.github/workflows/pr.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [17, 21]
10+
java: [21]
1111
steps:
1212
- uses: actions/checkout@v4
1313
with:

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'temurin'
23-
java-version: 17
23+
java-version: 21
2424
cache: 'gradle'
2525
- name: Build candidate
2626
if: contains(github.ref, '-rc.')

.github/workflows/snapshot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'temurin'
23-
java-version: 17
23+
java-version: 21
2424
cache: 'gradle'
2525
- name: Build snapshot
2626
run: ./gradlew build snapshot

build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ext.githubProjectName = rootProject.name
1818

1919
idea {
2020
project {
21-
languageLevel = '17'
21+
languageLevel = '21'
2222
}
2323
}
2424

@@ -67,12 +67,12 @@ subprojects {
6767

6868
group = "com.netflix.${githubProjectName}"
6969

70-
sourceCompatibility = '17'
71-
targetCompatibility = '17'
70+
sourceCompatibility = '21'
71+
targetCompatibility = '21'
7272

7373
java {
7474
toolchain {
75-
languageVersion = JavaLanguageVersion.of(17)
75+
languageVersion = JavaLanguageVersion.of(21)
7676
}
7777
}
7878

0 commit comments

Comments
 (0)