Skip to content

Commit 0cf2f25

Browse files
committed
Upgrade JVM source/target compatibility to 11
1 parent 8a25efa commit 0cf2f25

File tree

1 file changed

+4
-4
lines changed
  • build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid

1 file changed

+4
-4
lines changed

build-logic/convention/src/main/kotlin/com/google/samples/apps/nowinandroid/KotlinAndroid.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ internal fun Project.configureKotlinAndroid(
4040
}
4141

4242
compileOptions {
43-
sourceCompatibility = JavaVersion.VERSION_1_8
44-
targetCompatibility = JavaVersion.VERSION_1_8
43+
sourceCompatibility = JavaVersion.VERSION_11
44+
targetCompatibility = JavaVersion.VERSION_11
4545
isCoreLibraryDesugaringEnabled = true
4646
}
4747

@@ -59,8 +59,8 @@ internal fun Project.configureKotlinAndroid(
5959
"-opt-in=kotlin.Experimental",
6060
)
6161

62-
// Set JVM target to 1.8
63-
jvmTarget = JavaVersion.VERSION_1_8.toString()
62+
// Set JVM target to 11
63+
jvmTarget = JavaVersion.VERSION_11.toString()
6464
}
6565
}
6666

0 commit comments

Comments
 (0)