File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
src/main/kotlin/com/google/samples/apps/nowinandroid Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ plugins {
2323group = " com.google.samples.apps.nowinandroid.buildlogic"
2424
2525java {
26- sourceCompatibility = JavaVersion .VERSION_11
27- targetCompatibility = JavaVersion .VERSION_11
26+ sourceCompatibility = JavaVersion .VERSION_17
27+ targetCompatibility = JavaVersion .VERSION_17
2828}
2929
3030tasks.withType<KotlinCompile >().configureEach {
3131 kotlinOptions {
32- jvmTarget = JavaVersion .VERSION_11 .toString()
32+ jvmTarget = JavaVersion .VERSION_17 .toString()
3333 }
3434}
3535
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ internal fun Project.configureKotlinAndroid(
4242 }
4343
4444 compileOptions {
45- sourceCompatibility = JavaVersion .VERSION_11
46- targetCompatibility = JavaVersion .VERSION_11
45+ sourceCompatibility = JavaVersion .VERSION_17
46+ targetCompatibility = JavaVersion .VERSION_17
4747 isCoreLibraryDesugaringEnabled = true
4848 }
4949 }
@@ -52,7 +52,7 @@ internal fun Project.configureKotlinAndroid(
5252 tasks.withType<KotlinCompile >().configureEach {
5353 kotlinOptions {
5454 // Set JVM target to 11
55- jvmTarget = JavaVersion .VERSION_11 .toString()
55+ jvmTarget = JavaVersion .VERSION_17 .toString()
5656 // Treat all Kotlin warnings as errors (disabled by default)
5757 // Override by setting warningsAsErrors=true in your ~/.gradle/gradle.properties
5858 val warningsAsErrors: String? by project
Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ plugins {
2323}
2424
2525java {
26- sourceCompatibility = JavaVersion .VERSION_11
27- targetCompatibility = JavaVersion .VERSION_11
26+ sourceCompatibility = JavaVersion .VERSION_17
27+ targetCompatibility = JavaVersion .VERSION_17
2828}
2929
3030tasks.withType<KotlinCompile >().configureEach {
3131 kotlinOptions {
32- jvmTarget = JavaVersion .VERSION_11 .toString()
32+ jvmTarget = JavaVersion .VERSION_17 .toString()
3333 }
3434}
3535
You can’t perform that action at this time.
0 commit comments