Skip to content

Commit ae9bfe0

Browse files
committed
Use jvm toolchain
1 parent 9d5b56a commit ae9bfe0

File tree

3 files changed

+12
-17
lines changed

3 files changed

+12
-17
lines changed

example/build.gradle

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,15 @@ android {
2323
}
2424
}
2525

26-
compileOptions {
27-
sourceCompatibility 1.8
28-
targetCompatibility 1.8
29-
}
30-
31-
kotlinOptions {
32-
jvmTarget = '1.8'
33-
}
3426
buildFeatures {
3527
buildConfig true
3628
}
3729
}
3830

31+
kotlin {
32+
jvmToolchain(17)
33+
}
34+
3935
dependencies {
4036
implementation libs.kotlin.stdlib
4137
implementation libs.androidx.core

library/build.gradle

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@ android {
3737
}
3838
}
3939

40-
compileOptions {
41-
sourceCompatibility 1.8
42-
targetCompatibility 1.8
43-
}
44-
45-
kotlinOptions {
46-
jvmTarget = '1.8'
47-
}
48-
4940
testFixtures {
5041
enable = true
5142
}
@@ -57,6 +48,10 @@ android {
5748
}
5849
}
5950

51+
kotlin {
52+
jvmToolchain(17)
53+
}
54+
6055
dependencies {
6156
implementation libs.kotlin.stdlib
6257
implementation libs.okio

settings.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ pluginManagement {
55
}
66
}
77

8+
plugins {
9+
id 'org.gradle.toolchains.foojay-resolver-convention' version '0.5.0'
10+
}
11+
812
dependencyResolutionManagement {
913
repositories {
1014
google()

0 commit comments

Comments
 (0)