gradle: move JVM target up to 11

1.8 is being deprecated across the board

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2023-05-03 00:49:47 +05:30 committed by Jason A. Donenfeld
parent bed2f2e5d6
commit 1b5f4d6dfd
2 changed files with 5 additions and 5 deletions

View File

@ -10,8 +10,8 @@ plugins {
android { android {
compileSdk = 33 compileSdk = 33
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
} }
namespace = "com.wireguard.android.tunnel" namespace = "com.wireguard.android.tunnel"
defaultConfig { defaultConfig {

View File

@ -25,8 +25,8 @@ android {
buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString()) buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString())
} }
compileOptions { compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_11
isCoreLibraryDesugaringEnabled = true isCoreLibraryDesugaringEnabled = true
} }
buildTypes { buildTypes {
@ -78,5 +78,5 @@ tasks.withType<JavaCompile>().configureEach {
} }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString() kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
} }