From e8e1fddb10e63854eca172f27e10447da83c566d Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Thu, 18 Jan 2024 15:53:10 -0800 Subject: [PATCH] Update JDK API level back to 11 --- .github/workflows/maven.yml | 6 +++--- .github/workflows/publish.yml | 6 +++--- .github/workflows/release.yml | 6 +++--- .../ai/djl/spring/examples/console/ConsoleApplication.java | 1 - djl-spring-boot-starter-parent/pom.xml | 2 +- docs/walkthrough/getting-started.md | 2 +- 6 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 753e361..14fc77a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -15,10 +15,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 distribution: 'temurin' cache: maven - name: Build with Maven diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 28f8971..adca6aa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,10 +12,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 distribution: 'temurin' - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d3003f2..9a0564b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,10 @@ jobs: - uses: actions/checkout@v3 with: ref: ${{ github.event.inputs.tag }} - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - name: Set up JDK 17 + uses: actions/setup-java@v4 with: - java-version: 11 + java-version: 17 distribution: 'temurin' - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/djl-spring-boot-console-sample/src/main/java/ai/djl/spring/examples/console/ConsoleApplication.java b/djl-spring-boot-console-sample/src/main/java/ai/djl/spring/examples/console/ConsoleApplication.java index fddb8ae..041770f 100644 --- a/djl-spring-boot-console-sample/src/main/java/ai/djl/spring/examples/console/ConsoleApplication.java +++ b/djl-spring-boot-console-sample/src/main/java/ai/djl/spring/examples/console/ConsoleApplication.java @@ -13,7 +13,6 @@ package ai.djl.spring.examples.console; import ai.djl.inference.Predictor; - import ai.djl.modality.Classifications; import ai.djl.modality.cv.Image; import ai.djl.modality.cv.ImageFactory; diff --git a/djl-spring-boot-starter-parent/pom.xml b/djl-spring-boot-starter-parent/pom.xml index 05ff16a..b4a8fba 100644 --- a/djl-spring-boot-starter-parent/pom.xml +++ b/djl-spring-boot-starter-parent/pom.xml @@ -35,7 +35,7 @@ 0.26.0 - 17 + 11 3.1.1 3.1.0 diff --git a/docs/walkthrough/getting-started.md b/docs/walkthrough/getting-started.md index 51a137e..5d50917 100644 --- a/docs/walkthrough/getting-started.md +++ b/docs/walkthrough/getting-started.md @@ -53,7 +53,7 @@ Below you can see an example of *MXNet Dependency for linux architecture*, which - 17 + 11 5.3.0