switch the Java toolchain to version 21

Switch the Java toolchain to version 21 - the version shipped with current AndroidStudio releases.
Disable Java 1.8 warnings - see discussion in PR #4735
This commit is contained in:
Thomas Kuehne
2025-05-10 13:09:46 +00:00
committed by José Rebelo
parent 87fd6b1596
commit 03e14edee4
3 changed files with 12 additions and 4 deletions
+3 -3
View File
@@ -35,9 +35,9 @@ artifacts {
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
toolchain.languageVersion = JavaLanguageVersion.of(17)
// setting sourceCompatibility and targetCompatibility isn't required because this module
// ships no complied code
toolchain.languageVersion = JavaLanguageVersion.of(21)
}
tasks.named("distTar") {