Skip to content

Commit

Permalink
Remove support for Java 7.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
java-team-github-bot authored and Dagger Team committed Aug 28, 2024
1 parent c06a25f commit 3d4e5fc
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions javatests/artifacts/dagger/java-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
4 changes: 2 additions & 2 deletions javatests/artifacts/hilt-android/simple/deep-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3d4e5fc

Please sign in to comment.