Skip to content

Commit

Permalink
Update: JVM 21 & improve handling
Browse files Browse the repository at this point in the history
  • Loading branch information
machiav3lli committed Dec 14, 2024
1 parent edbb891 commit 9c94784
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
Expand All @@ -18,6 +16,8 @@ allprojects {
}
}

val jvmVersion = JavaVersion.VERSION_21

android {
namespace = "com.saulhdev.feeder"
compileSdk = 35
Expand Down Expand Up @@ -98,14 +98,12 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
sourceCompatibility = jvmVersion
targetCompatibility = jvmVersion
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
kotlin {
jvmToolchain(jvmVersion.toString().toInt())
}

buildFeatures {
Expand Down

0 comments on commit 9c94784

Please sign in to comment.