mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
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:
+2
-7
@@ -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'
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user