File tree Expand file tree Collapse file tree
sentry-android-navigation
sentry-apache-http-client-5 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import io.gitlab.arturbosch.detekt.Detekt
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
4+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
25
36plugins {
47 id(" com.android.library" )
@@ -24,9 +27,10 @@ android {
2427 }
2528
2629 kotlin {
27- compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_1_8
28- compilerOptions.languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
29- compilerOptions.apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
30+ jvmToolchain(8 )
31+ compilerOptions.jvmTarget = JVM_1_8
32+ compilerOptions.languageVersion = KotlinVersion .KOTLIN_1_9
33+ compilerOptions.apiVersion = KotlinVersion .KOTLIN_1_9
3034 }
3135
3236 testOptions {
Original file line number Diff line number Diff line change 11import io.gitlab.arturbosch.detekt.Detekt
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
24import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
35
46plugins {
@@ -33,9 +35,10 @@ android {
3335 }
3436
3537 kotlin {
36- compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_1_8
37- compilerOptions.languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
38- compilerOptions.apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
38+ jvmToolchain(8 )
39+ compilerOptions.jvmTarget = JvmTarget .JVM_1_8
40+ compilerOptions.languageVersion = KotlinVersion .KOTLIN_1_9
41+ compilerOptions.apiVersion = KotlinVersion .KOTLIN_1_9
3942 }
4043
4144 testOptions {
Original file line number Diff line number Diff line change 11import io.gitlab.arturbosch.detekt.Detekt
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
24
35plugins {
46 id(" com.android.library" )
@@ -24,9 +26,10 @@ android {
2426 }
2527
2628 kotlin {
27- compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_1_8
28- compilerOptions.languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
29- compilerOptions.apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
29+ jvmToolchain(8 )
30+ compilerOptions.jvmTarget = JvmTarget .JVM_1_8
31+ compilerOptions.languageVersion = KotlinVersion .KOTLIN_1_9
32+ compilerOptions.apiVersion = KotlinVersion .KOTLIN_1_9
3033 }
3134
3235 testOptions {
Original file line number Diff line number Diff line change 11import net.ltgt.gradle.errorprone.errorprone
2- import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
3+ import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
34
45plugins {
56 `java- library`
@@ -10,10 +11,11 @@ plugins {
1011 alias(libs.plugins.gradle.versions)
1112}
1213
13- tasks.withType<KotlinCompile >().configureEach {
14- compilerOptions.jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget .JVM_1_8
15- compilerOptions.languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
16- compilerOptions.apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion .KOTLIN_1_9
14+ kotlin {
15+ jvmToolchain(8 )
16+ compilerOptions.jvmTarget = JvmTarget .JVM_1_8
17+ compilerOptions.languageVersion = KotlinVersion .KOTLIN_1_9
18+ compilerOptions.apiVersion = KotlinVersion .KOTLIN_1_9
1719}
1820
1921dependencies {
You can’t perform that action at this time.
0 commit comments