Skip to content

Commit 9b1b34b

Browse files
authored
[build] Update Java source compatibility to 17 (#25)
1 parent b338cf3 commit 9b1b34b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ jobs:
1111
fetch-depth: 0
1212
- uses: actions/setup-java@v4
1313
with:
14-
java-version: 11
15-
distribution: 'zulu'
14+
java-version: 17
15+
distribution: 'temurin'
1616
- name: Publish to Maven Local
1717
run: ./gradlew build publishToMavenLocal --stacktrace -PlocalPublish
1818
- uses: actions/upload-artifact@v4
@@ -29,8 +29,8 @@ jobs:
2929
fetch-depth: 0
3030
- uses: actions/setup-java@v4
3131
with:
32-
java-version: 11
33-
distribution: 'zulu'
32+
java-version: 17
33+
distribution: 'temurin'
3434
- name: Publish
3535
if: ${{ github.repository_owner == 'wpilibsuite' && startsWith(github.ref, 'refs/tags/v') }}
3636
env:

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ dependencies {
2222
}
2323

2424
java {
25-
sourceCompatibility = JavaVersion.VERSION_11
26-
targetCompatibility = JavaVersion.VERSION_11
25+
sourceCompatibility = JavaVersion.VERSION_17
26+
targetCompatibility = JavaVersion.VERSION_17
2727
}
2828

2929
if (OperatingSystem.current().isWindows()) {

0 commit comments

Comments
 (0)