Skip to content

Commit 51ac01e

Browse files
authored
[build] Update source compatibility to Java 17 (#206)
1 parent 0f906c3 commit 51ac01e

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
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
- name: Publish
@@ -40,8 +40,8 @@ jobs:
4040
- uses: actions/checkout@v4
4141
- uses: actions/setup-java@v4
4242
with:
43-
java-version: 11
44-
distribution: 'zulu'
43+
java-version: 17
44+
distribution: 'temurin'
4545
- name: Publish
4646
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
4747
run: ./gradlew publishToMavenLocal

ToolchainPlugin/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ base {
3737
}
3838

3939
java {
40-
sourceCompatibility = 11
41-
targetCompatibility = 11
40+
sourceCompatibility = 17
41+
targetCompatibility = 17
4242
}
4343

4444
if (project.hasProperty('RunToolchainTests')) {

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ plugins {
77
}
88

99
java {
10-
sourceCompatibility = 11
11-
targetCompatibility = 11
10+
sourceCompatibility = 17
11+
targetCompatibility = 17
1212
}
1313

1414
allprojects {

0 commit comments

Comments
 (0)