Skip to content

Commit 9674021

Browse files
BREAKING CHANGE: Remove Java 11 support (#282)
* BREAKING CHANGE: Remove Java 11 support, Java 17 is now the minimum required version - Updated build.gradle to set sourceCompatibility and targetCompatibility to Java 17 - Updated GitHub Actions workflow to test on Java 17 and 21 only - Removed Java 11 from CI/CD test matrix - Updated all workflow jobs to use Java 17 as the base version * Update README to document Java 17 minimum requirement and support policy
1 parent 8320174 commit 9674021

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/workflows/main.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
strategy:
2020
matrix:
21-
java: [11, 17, 21]
21+
java: [17, 21]
2222

2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
./gradlew build test-integration
3939
40-
- if: matrix.java == 11
40+
- if: matrix.java == 17
4141
name: Upload coverage to Codecov
4242
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
4343
continue-on-error: true
@@ -60,7 +60,7 @@ jobs:
6060
- name: Set up JDK
6161
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
6262
with:
63-
java-version: 11
63+
java-version: 17
6464
distribution: "temurin"
6565

6666
- name: Validate Gradle wrapper
@@ -93,7 +93,7 @@ jobs:
9393
- name: Set up JDK
9494
uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5.2.0
9595
with:
96-
java-version: 11
96+
java-version: 17
9797
distribution: "temurin"
9898

9999
- name: Validate Gradle wrapper

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ OpenFGA is designed to make it easy for application builders to model their perm
7676

7777
The OpenFGA Java SDK is available on [Maven Central](https://central.sonatype.com/).
7878

79-
The OpenFGA Java SDK currently supports **Java 11** as the minimum JDK version.
79+
The OpenFGA Java SDK currently supports **Java 17** as the minimum JDK version.
8080

8181
It can be used with the following:
8282

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ repositories {
2626
}
2727

2828
java {
29-
sourceCompatibility = JavaVersion.VERSION_11
30-
targetCompatibility = JavaVersion.VERSION_11
29+
sourceCompatibility = JavaVersion.VERSION_17
30+
targetCompatibility = JavaVersion.VERSION_17
3131

3232
withJavadocJar()
3333
withSourcesJar()

0 commit comments

Comments
 (0)