Skip to content

Commit d7e8a22

Browse files
committed
Configure jvm toolchain to 17
Signed-off-by: Arka Prava Basu <[email protected]>
1 parent 326e9d1 commit d7e8a22

File tree

6 files changed

+12
-7
lines changed

6 files changed

+12
-7
lines changed

deeplinkdispatch-base/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ checkstyle {
1818
configProperties = ['checkstyle.cache.file': rootProject.file('build/checkstyle.cache')]
1919
}
2020

21+
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
22+
kotlin {
23+
jvmToolchain(17)
24+
}
25+
}

deeplinkdispatch-processor/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ checkstyle {
3232

3333
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
3434
kotlin {
35-
jvmToolchain(21)
35+
jvmToolchain(17)
3636
}
3737
kotlinOptions {
3838
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
3939
freeCompilerArgs += "-Xopt-in=androidx.room.compiler.processing.ExperimentalProcessingApi"
4040
}
41-
}
41+
}

deeplinkdispatch/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ android {
3636
unitTests.returnDefaultValues = true
3737
}
3838
compileOptions {
39-
sourceCompatibility JavaVersion.VERSION_21
40-
targetCompatibility JavaVersion.VERSION_21
39+
sourceCompatibility JavaVersion.VERSION_17
40+
targetCompatibility JavaVersion.VERSION_17
4141
}
4242
namespace 'com.airbnb.android.deeplinkdispatch'
4343
}

sample-benchmark/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ android {
2323
}
2424

2525
kotlin {
26-
jvmToolchain(21)
26+
jvmToolchain(17)
2727
}
2828

2929
namespace 'com.airbnb.deeplinkdispatch.sample.benchmark'

sample-kapt-library/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
}
2626

2727
kotlin {
28-
jvmToolchain(21)
28+
jvmToolchain(17)
2929
}
3030

3131
namespace 'com.airbnb.deeplinkdispatch.sample.kaptlibrary'

sample/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ android {
3939
}
4040

4141
kotlin {
42-
jvmToolchain(21)
42+
jvmToolchain(17)
4343
}
4444
lint {
4545
disable 'InvalidPackage'

0 commit comments

Comments
 (0)