Set source and target compatibility to Java 17

For context, see https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/4735#issuecomment-4413866
This commit is contained in:
José Rebelo
2025-05-10 14:11:41 +01:00
parent 03e14edee4
commit 0bca7087bb
2 changed files with 2 additions and 10 deletions
+2 -7
View File
@@ -11,11 +11,6 @@ tasks.withType(Test).configureEach {
systemProperty "GB_LOGFILES_DIR", Files.createTempDirectory("gblog").toString()
}
// disable Java 1.8 warning
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:-options"
}
def getVersionCode = { ->
try {
def commitCount = providers.exec {
@@ -79,8 +74,8 @@ java {
android {
compileOptions {
coreLibraryDesugaringEnabled = true
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
namespace = 'nodomain.freeyourgadget.gadgetbridge'
-3
View File
@@ -23,6 +23,3 @@ android.enableJetifier=false
# FIXME: This optimizes away some classes it should not - see #3853
android.enableR8.fullMode=false
# disable Java 1.8 warning
android.javaCompile.suppressSourceTargetDeprecationWarning=true