Skip to content

Commit bdddedf

Browse files
authored
[build] Update Java source compatibility to 17 (#38)
1 parent d808d58 commit bdddedf

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-java@v4
1414
with:
15-
java-version: 11
16-
distribution: 'zulu'
15+
java-version: 17
16+
distribution: 'temurin'
1717
- name: Build
1818
run: ./gradlew build -PRunToolchainTests
1919

@@ -24,8 +24,8 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- uses: actions/setup-java@v4
2626
with:
27-
java-version: 11
28-
distribution: 'zulu'
27+
java-version: 17
28+
distribution: 'temurin'
2929
- name: Publish
3030
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
3131
run: ./gradlew publishToMavenLocal

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ repositories {
2020
}
2121

2222
java {
23-
sourceCompatibility = 11
24-
targetCompatibility = 11
23+
sourceCompatibility = 17
24+
targetCompatibility = 17
2525
}
2626

2727
dependencies {

0 commit comments

Comments
 (0)