From 3d4e5fc0d3033442e6e998a14e550b01aef8ef81 Mon Sep 17 00:00:00 2001 From: Dagger Team Date: Wed, 28 Aug 2024 11:53:42 -0700 Subject: [PATCH] Remove support for Java 7. We're aiming to add proper nullable annotations to Dagger's runtime API types in the upcoming Dagger release. In order to do this we need to drop support for Java 7. Given Java 7 itself was officially out of support after July 2022, dropping support for Java 7 in Dagger seem reasonable. RELNOTES=Remove support for Java 7 PiperOrigin-RevId: 668546703 --- javatests/artifacts/dagger/java-app/build.gradle | 4 ++-- .../artifacts/dagger/transitive-annotation-app/build.gradle | 4 ++-- .../dagger/transitive-annotation-app/library1/build.gradle | 4 ++-- .../dagger/transitive-annotation-app/library2/build.gradle | 4 ++-- .../dagger/transitive-annotation-kotlin-app/build.gradle | 4 ++-- .../transitive-annotation-kotlin-app/library1/build.gradle | 4 ++-- .../transitive-annotation-kotlin-app/library2/build.gradle | 4 ++-- javatests/artifacts/hilt-android/simple/deep-lib/build.gradle | 4 ++-- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/javatests/artifacts/dagger/java-app/build.gradle b/javatests/artifacts/dagger/java-app/build.gradle index 16c6e663e0e..b167746bfbe 100644 --- a/javatests/artifacts/dagger/java-app/build.gradle +++ b/javatests/artifacts/dagger/java-app/build.gradle @@ -20,8 +20,8 @@ plugins { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } dependencies { diff --git a/javatests/artifacts/dagger/transitive-annotation-app/build.gradle b/javatests/artifacts/dagger/transitive-annotation-app/build.gradle index 22933a4a363..0b0cec9a5ca 100644 --- a/javatests/artifacts/dagger/transitive-annotation-app/build.gradle +++ b/javatests/artifacts/dagger/transitive-annotation-app/build.gradle @@ -20,8 +20,8 @@ plugins { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } dependencies { diff --git a/javatests/artifacts/dagger/transitive-annotation-app/library1/build.gradle b/javatests/artifacts/dagger/transitive-annotation-app/library1/build.gradle index 2126f0923d8..60259e57a23 100644 --- a/javatests/artifacts/dagger/transitive-annotation-app/library1/build.gradle +++ b/javatests/artifacts/dagger/transitive-annotation-app/library1/build.gradle @@ -20,8 +20,8 @@ plugins { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } dependencies { diff --git a/javatests/artifacts/dagger/transitive-annotation-app/library2/build.gradle b/javatests/artifacts/dagger/transitive-annotation-app/library2/build.gradle index b4d45e47565..c0a95b94923 100644 --- a/javatests/artifacts/dagger/transitive-annotation-app/library2/build.gradle +++ b/javatests/artifacts/dagger/transitive-annotation-app/library2/build.gradle @@ -20,6 +20,6 @@ plugins { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } diff --git a/javatests/artifacts/dagger/transitive-annotation-kotlin-app/build.gradle b/javatests/artifacts/dagger/transitive-annotation-kotlin-app/build.gradle index 1b0c04dcb88..88519e9107f 100644 --- a/javatests/artifacts/dagger/transitive-annotation-kotlin-app/build.gradle +++ b/javatests/artifacts/dagger/transitive-annotation-kotlin-app/build.gradle @@ -21,8 +21,8 @@ plugins { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } kapt { diff --git a/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library1/build.gradle b/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library1/build.gradle index 38759136871..17c63b33026 100644 --- a/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library1/build.gradle +++ b/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library1/build.gradle @@ -21,8 +21,8 @@ plugins { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } kapt { diff --git a/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library2/build.gradle b/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library2/build.gradle index 9b4c0875c4c..e65b5bdb461 100644 --- a/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library2/build.gradle +++ b/javatests/artifacts/dagger/transitive-annotation-kotlin-app/library2/build.gradle @@ -25,6 +25,6 @@ kapt { } java { - // Make sure the generated source is compatible with Java 7. - sourceCompatibility = JavaVersion.VERSION_1_7 + // Make sure the generated source is compatible with Java 8. + sourceCompatibility = JavaVersion.VERSION_1_8 } diff --git a/javatests/artifacts/hilt-android/simple/deep-lib/build.gradle b/javatests/artifacts/hilt-android/simple/deep-lib/build.gradle index 22f815c1792..3f8223cfeba 100644 --- a/javatests/artifacts/hilt-android/simple/deep-lib/build.gradle +++ b/javatests/artifacts/hilt-android/simple/deep-lib/build.gradle @@ -3,8 +3,8 @@ plugins { } java { - sourceCompatibility = JavaVersion.VERSION_1_7 - targetCompatibility = JavaVersion.VERSION_1_7 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } dependencies {