diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index c305c4684..cdb1e14a0 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -18,10 +18,10 @@ jobs: - name: Gradle Wrapper Validation uses: gradle/actions/wrapper-validation@v6 - - name: Set up JDK 21 + - name: Set up JDK 17 uses: actions/setup-java@v5 with: - java-version: '21' + java-version: '17' distribution: 'zulu' - name: Set up Python @@ -140,11 +140,11 @@ jobs: - name: Gradle Wrapper Validation uses: gradle/actions/wrapper-validation@v6 - - name: Install JDK 21 + - name: Install JDK 17 uses: actions/setup-java@v5 with: distribution: 'zulu' - java-version: 21 + java-version: 17 - name: Set up Python uses: actions/setup-python@v6 diff --git a/README.md b/README.md index 35f0b99be..434897f5e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Documentation: [Javadocs](https://dropbox.github.io/dropbox-sdk-java/) ### Java Version -The current release of Dropbox SDK Java supports Java 8+. +The current release of Dropbox SDK Java supports Java 17+. ### Android Version @@ -370,7 +370,7 @@ dependencies { The JAR's manifest has the following line: ``` -Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))" +Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=17))" ``` Most OSGi containers should provide this capability. Unfortunately, some OSGi containers don't do this correctly and will reject the bundle JAR in the OSGi subsystem context. diff --git a/android/build.gradle b/android/build.gradle index b3cb3750f..11413fd9a 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -25,8 +25,8 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } } diff --git a/core/build.gradle b/core/build.gradle index 165386c43..9345403b3 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -18,8 +18,8 @@ dependencyGuard { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } ext { @@ -105,7 +105,7 @@ configurations { } tasks.withType(JavaCompile).configureEach { - options.release.set(8) + options.release.set(17) } tasks.named("compileJava", JavaCompile) { @@ -216,7 +216,7 @@ tasks.named("javadoc", Javadoc) { if (JavaVersion.current().isJava8Compatible()) { options.addBooleanOption "Xdoclint:all,-missing,-reference", true } - options.addStringOption "link", "http://docs.oracle.com/javase/8/docs/api/" + options.addStringOption "link", "https://docs.oracle.com/en/java/javase/17/docs/api/" } tasks.named("jar", Jar) { diff --git a/examples/android/build.gradle b/examples/android/build.gradle index 55e2d7e78..4fbbc4c42 100644 --- a/examples/android/build.gradle +++ b/examples/android/build.gradle @@ -57,8 +57,8 @@ android { } compileOptions { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } } diff --git a/examples/examples/build.gradle b/examples/examples/build.gradle index c8807e09e..808f45ea1 100644 --- a/examples/examples/build.gradle +++ b/examples/examples/build.gradle @@ -6,18 +6,18 @@ plugins { description = 'Consolidated Examples' java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } kotlin { compilerOptions { - jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8) + jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17) } } tasks.withType(JavaCompile).configureEach { - options.release.set(8) + options.release.set(17) } dependencies { diff --git a/examples/java/build.gradle b/examples/java/build.gradle index b56f44fc1..816d66be3 100644 --- a/examples/java/build.gradle +++ b/examples/java/build.gradle @@ -11,12 +11,12 @@ dependencyGuard { description = 'Java Examples' java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } tasks.withType(JavaCompile).configureEach { - options.release.set(8) + options.release.set(17) } dependencies { diff --git a/proguard/build.gradle b/proguard/build.gradle index 82c7654d7..ae9b4c468 100644 --- a/proguard/build.gradle +++ b/proguard/build.gradle @@ -8,12 +8,12 @@ base { } java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = JavaVersion.VERSION_17 + targetCompatibility = JavaVersion.VERSION_17 } tasks.withType(JavaCompile).configureEach { - options.release.set(8) + options.release.set(17) } ext {