diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 50bdd3e5..c6112a1d 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,7 +18,7 @@ jobs: strategy: matrix: - java: [11, 17, 21] + java: [17, 21] steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -37,7 +37,7 @@ jobs: run: | ./gradlew build test-integration - - if: matrix.java == 11 + - if: matrix.java == 17 name: Upload coverage to Codecov uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2 continue-on-error: true @@ -60,7 +60,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 with: - java-version: 11 + java-version: 17 distribution: "temurin" - name: Validate Gradle wrapper @@ -93,7 +93,7 @@ jobs: - name: Set up JDK uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0 with: - java-version: 11 + java-version: 17 distribution: "temurin" - name: Validate Gradle wrapper diff --git a/README.md b/README.md index e5a61ac3..95c7c927 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ OpenFGA is designed to make it easy for application builders to model their perm The OpenFGA Java SDK is available on [Maven Central](https://central.sonatype.com/). -The OpenFGA Java SDK currently supports **Java 11** as the minimum JDK version. +The OpenFGA Java SDK currently supports **Java 17** as the minimum JDK version. It can be used with the following: diff --git a/build.gradle b/build.gradle index 699d87e5..7bac38bd 100644 --- a/build.gradle +++ b/build.gradle @@ -26,8 +26,8 @@ repositories { } java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 withJavadocJar() withSourcesJar()