From 6d67a3d5f5d6e9b4f5f22113255045ad74e62cf9 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 3 May 2023 00:52:52 +0530 Subject: gradle: upgrade Kotlin and AGP Signed-off-by: Harsh Shandilya --- gradle/libs.versions.toml | 4 ++-- ui/build.gradle.kts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 87e8efc4..7b3659d3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,6 +1,6 @@ [versions] -agp = "8.0.0" -kotlin = "1.8.0" +agp = "8.0.1" +kotlin = "1.8.21" [libraries] androidx-activity-ktx = "androidx.activity:activity-ktx:1.7.1" diff --git a/ui/build.gradle.kts b/ui/build.gradle.kts index 10968ec1..7164cf3d 100644 --- a/ui/build.gradle.kts +++ b/ui/build.gradle.kts @@ -1,6 +1,6 @@ @file:Suppress("UnstableApiUsage") +import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -import org.gradle.api.tasks.compile.JavaCompile plugins { alias(libs.plugins.android.application) @@ -78,5 +78,5 @@ tasks.withType().configureEach { } tasks.withType().configureEach { - kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString() + compilerOptions.jvmTarget.set(JvmTarget.JVM_11) } -- cgit v1.2.3