Skip to content

Commit

Permalink
Update JDK API level back to 11
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed Jan 18, 2024
1 parent 206e723 commit e8e1fdd
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion djl-spring-boot-starter-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<properties>
<djl.version>0.26.0</djl.version>
<java.version>17</java.version>
<java.version>11</java.version>
<maven-javadoc-plugin.version>3.1.1</maven-javadoc-plugin.version>
<maven-source-plugin.version>3.1.0</maven-source-plugin.version>
</properties>
Expand Down
2 changes: 1 addition & 1 deletion docs/walkthrough/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Below you can see an example of *MXNet Dependency for linux architecture*, which
</parent>

<properties>
<java.version>17</java.version> <!-- 11 is the lowest supported java version, however 12 and 13 should work fine -->
<java.version>11</java.version> <!-- 11 is the lowest supported java version, however 12 and 13 should work fine -->
<jna.version>5.3.0</jna.version> <!-- Required to override default JNA version for Spring Boot parent-->
</properties>

Expand Down

0 comments on commit e8e1fdd

Please sign in to comment.