Skip to content

Commit

Permalink
Merge pull request #453 from ForgeRock/SDKS-3435
Browse files Browse the repository at this point in the history
SDKS-3435 Use JVM Tool Chain to specify the language version.
  • Loading branch information
spetrov authored Oct 1, 2024
2 parents 0dec587 + 060024a commit c8af564
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions samples/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ android {
namespace = "com.example.app"
compileSdk = 35
defaultConfig {
targetSdk = 35
minSdk = 23
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}

buildTypes {
getByName("release") {
Expand All @@ -39,9 +36,6 @@ android {
keyPassword = "android"
}
}
kotlinOptions {
jvmTarget = "17"
}

buildFeatures {
compose = true
Expand All @@ -52,6 +46,14 @@ android {
}
}


kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}


dependencies {

val composeBom = platform("androidx.compose:compose-bom:2022.10.00")
Expand Down

0 comments on commit c8af564

Please sign in to comment.