Skip to content

Commit a91c23a

Browse files
msfjarviszx2c4
authored andcommitted
gradle: move JVM target up to 11
1.8 is being deprecated across the board Signed-off-by: Harsh Shandilya <[email protected]>
1 parent 06c1f96 commit a91c23a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tunnel/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ plugins {
1010
android {
1111
compileSdk = 33
1212
compileOptions {
13-
sourceCompatibility = JavaVersion.VERSION_1_8
14-
targetCompatibility = JavaVersion.VERSION_1_8
13+
sourceCompatibility = JavaVersion.VERSION_11
14+
targetCompatibility = JavaVersion.VERSION_11
1515
}
1616
namespace = "com.wireguard.android.tunnel"
1717
defaultConfig {

ui/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ android {
2525
buildConfigField("int", "MIN_SDK_VERSION", minSdk.toString())
2626
}
2727
compileOptions {
28-
sourceCompatibility = JavaVersion.VERSION_1_8
29-
targetCompatibility = JavaVersion.VERSION_1_8
28+
sourceCompatibility = JavaVersion.VERSION_11
29+
targetCompatibility = JavaVersion.VERSION_11
3030
isCoreLibraryDesugaringEnabled = true
3131
}
3232
buildTypes {
@@ -78,5 +78,5 @@ tasks.withType<JavaCompile>().configureEach {
7878
}
7979

8080
tasks.withType<KotlinCompile>().configureEach {
81-
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
81+
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
8282
}

0 commit comments

Comments
 (0)