Update targets to java 17 (#186)

The newly upgraded dependencies (gradle 8.3) now require java 17
and the java and jvm targets must both match or there will be a build
failure due to lint.
This commit is contained in:
Deltadroid 2023-10-15 16:33:51 +02:00 committed by GitHub
parent df4bdce00d
commit 3eba91e55c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -63,14 +63,14 @@ android {
includeAndroidResources = true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
jvmTarget = JavaVersion.VERSION_17.toString()
}
namespace "org.dslul.openboard.inputmethod.latin"

View file

@ -31,6 +31,6 @@ dependencies {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

View file

@ -17,6 +17,6 @@ task makeText(type: JavaExec, dependsOn: ['jar']) {
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}