Upgrade to jdk 17 (#653)

Still targets Java 11 language support

Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
Co-authored-by: Matt <matthew.morley.ca@gmail.com>
This commit is contained in:
Mohammad Durrani
2022-12-27 15:56:21 -05:00
committed by GitHub
parent 14d263a567
commit 78ab5e7c1d
4 changed files with 18 additions and 15 deletions

View File

@@ -60,11 +60,11 @@ jobs:
- name: Fetch tags
run: git fetch --tags --force
# Install Java 11.
- name: Install Java 11
# Install Java 17.
- name: Install Java 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: temurin
# Need to publish to maven local first, so that C++ sim can pick it up
@@ -103,11 +103,11 @@ jobs:
- name: Fetch tags
run: git fetch --tags --force
# Install Java 11.
- name: Install Java 11
# Install Java 17.
- name: Install Java 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: temurin
# Run only build tasks, no checks??
@@ -181,10 +181,10 @@ jobs:
with:
fetch-depth: 0
# Install Java 11.
# Install Java 17.
- uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: temurin
# Check server code with Spotless.
@@ -215,7 +215,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: temurin
- run: git fetch --tags --force
- run: |
@@ -337,10 +337,10 @@ jobs:
with:
fetch-depth: 0
# Install Java 11.
# Install Java 17.
- uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: temurin
# Clear any existing web resources.

View File

@@ -16,6 +16,9 @@ test {
useJUnitPlatform()
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
wpilibTools.deps.wpilibVersion = wpilibVersion
println("Buidling for wpilib ${wpilibTools.deps.wpilibVersion}")

View File

@@ -2,9 +2,6 @@ apply plugin: "java"
apply from: "${rootDir}/shared/common.gradle"
sourceCompatibility = 11
targetCompatibility = 11
dependencies {
implementation wpilibTools.deps.wpilibJava("wpimath")
implementation "org.ejml:ejml-simple:0.41"

View File

@@ -6,7 +6,10 @@ import java.time.format.DateTimeFormatter
apply plugin: "jacoco"
apply plugin: "java"
sourceCompatibility = 11
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
wpilibTools.deps.wpilibVersion = wpilibVersion