Skip to content

Commit 582ccbc

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

File tree

8 files changed

+24
-7
lines changed

8 files changed

+24
-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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@ 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
41+
}
42+
kotlin {
43+
jvmToolchain(17)
4144
}
4245
namespace 'com.airbnb.android.deeplinkdispatch'
4346
}

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-benchmarkable-library/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ android {
1717
}
1818
}
1919

20+
compileOptions {
21+
sourceCompatibility JavaVersion.VERSION_17
22+
targetCompatibility JavaVersion.VERSION_17
23+
}
24+
2025
namespace 'com.airbnb.deeplinkdispatch.sample.benchmarkable'
2126
}
2227

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-library/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ android {
1818
}
1919
}
2020
}
21+
22+
kotlin {
23+
jvmToolchain(17)
24+
}
2125
namespace 'com.airbnb.deeplinkdispatch.sample.library'
2226
}
2327

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)