gradle: use Java 17
It appears to work, even on API 21. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
6d67a3d5f5
commit
4e28d57aee
@ -10,8 +10,8 @@ plugins {
|
|||||||
android {
|
android {
|
||||||
compileSdk = 33
|
compileSdk = 33
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
namespace = "com.wireguard.android.tunnel"
|
namespace = "com.wireguard.android.tunnel"
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
|
@ -25,8 +25,8 @@ android {
|
|||||||
buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString())
|
buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString())
|
||||||
}
|
}
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_11
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
isCoreLibraryDesugaringEnabled = true
|
isCoreLibraryDesugaringEnabled = true
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
@ -78,5 +78,5 @@ tasks.withType<JavaCompile>().configureEach {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile>().configureEach {
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
|
compilerOptions.jvmTarget.set(JvmTarget.JVM_17)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user