File tree Expand file tree Collapse file tree 4 files changed +21
-9
lines changed
Expand file tree Collapse file tree 4 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13plugins {
24 id ' com.android.application'
35 id ' org.jetbrains.kotlin.android'
@@ -29,9 +31,6 @@ android {
2931 sourceCompatibility JavaVersion . VERSION_17
3032 targetCompatibility JavaVersion . VERSION_17
3133 }
32- kotlinOptions {
33- jvmTarget = ' 17'
34- }
3534
3635 buildFeatures {
3736 dataBinding = true
@@ -44,6 +43,12 @@ android {
4443 }
4544}
4645
46+ kotlin {
47+ compilerOptions {
48+ jvmTarget = JvmTarget . JVM_17
49+ }
50+ }
51+
4752dependencies {
4853 lintChecks project(' :lint' )
4954
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ plugins {
33 alias(libs. plugins. android. library) apply false
44 alias(libs. plugins. kotlin. android) apply false
55 alias(libs. plugins. kotlin. compose) apply false
6+ alias(libs. plugins. kotlin. jvm) apply false
67}
78
89tasks. register(' clean' , Delete ) {
910 delete rootProject. buildDir
11+ finalizedBy(' :lint:assemble' )
1012}
Original file line number Diff line number Diff line change 11[versions ]
22agp = " 8.11.0"
33lint = " 31.11.0"
4- kotlin = " 2.1.21 "
4+ kotlin = " 2.2.0 "
55compose-bom = " 2025.06.01"
66
77[libraries ]
@@ -57,4 +57,5 @@ androidX-compose-debug = [
5757android-application = { id = " com.android.application" , version.ref = " agp" }
5858android-library = { id = " com.android.library" , version.ref = " agp" }
5959kotlin-android = { id = " org.jetbrains.kotlin.android" , version.ref = " kotlin" }
60- kotlin-compose = { id = " org.jetbrains.kotlin.plugin.compose" , version.ref = " kotlin" }
60+ kotlin-compose = { id = " org.jetbrains.kotlin.plugin.compose" , version.ref = " kotlin" }
61+ kotlin-jvm = { id = " org.jetbrains.kotlin.jvm" , version.ref = " kotlin" }
Original file line number Diff line number Diff line change 1- apply plugin : ' java-library'
2- apply plugin : ' kotlin'
1+ plugins {
2+ id ' java-library'
3+ alias(libs. plugins. kotlin. jvm)
4+ }
35
4- sourceCompatibility = JavaVersion . VERSION_21
5- targetCompatibility = JavaVersion . VERSION_21
6+ java {
7+ sourceCompatibility JavaVersion . VERSION_21
8+ targetCompatibility JavaVersion . VERSION_21
9+ }
610
711dependencies {
812 // Lint
You can’t perform that action at this time.
0 commit comments