gradle: upgrade Kotlin and AGP

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2023-05-03 00:52:52 +05:30 committed by Jason A. Donenfeld
parent 1b5f4d6dfd
commit 6d67a3d5f5
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[versions] [versions]
agp = "8.0.0" agp = "8.0.1"
kotlin = "1.8.0" kotlin = "1.8.21"
[libraries] [libraries]
androidx-activity-ktx = "androidx.activity:activity-ktx:1.7.1" androidx-activity-ktx = "androidx.activity:activity-ktx:1.7.1"

View File

@ -1,6 +1,6 @@
@file:Suppress("UnstableApiUsage") @file:Suppress("UnstableApiUsage")
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.api.tasks.compile.JavaCompile
plugins { plugins {
alias(libs.plugins.android.application) alias(libs.plugins.android.application)
@ -78,5 +78,5 @@ tasks.withType<JavaCompile>().configureEach {
} }
tasks.withType<KotlinCompile>().configureEach { tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString() compilerOptions.jvmTarget.set(JvmTarget.JVM_11)
} }