File tree Expand file tree Collapse file tree 7 files changed +52
-38
lines changed
Expand file tree Collapse file tree 7 files changed +52
-38
lines changed Original file line number Diff line number Diff line change 1- @Suppress(" DSL_SCOPE_VIOLATION" )
1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
23plugins {
34 id(libs.plugins.android.application.get().pluginId)
45 id(libs.plugins.kotlin.android.get().pluginId)
@@ -23,12 +24,14 @@ android {
2324 }
2425
2526 compileOptions {
26- sourceCompatibility = JavaVersion .VERSION_11
27- targetCompatibility = JavaVersion .VERSION_11
27+ sourceCompatibility = JavaVersion .VERSION_17
28+ targetCompatibility = JavaVersion .VERSION_17
2829 }
2930
30- kotlinOptions {
31- jvmTarget = libs.versions.jvmTarget.get()
31+ kotlin {
32+ compilerOptions {
33+ jvmTarget.set(JvmTarget .fromTarget(libs.versions.jvmTarget.get()))
34+ }
3235 }
3336
3437 packaging {
Original file line number Diff line number Diff line change 1- @Suppress(" DSL_SCOPE_VIOLATION" )
1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+ import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
3+
24plugins {
35 alias(libs.plugins.android.application) apply false
46 alias(libs.plugins.android.library) apply false
@@ -13,12 +15,16 @@ plugins {
1315
1416subprojects {
1517 if (name != " app" ) {
16- tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
17- kotlinOptions.jvmTarget = libs.versions.jvmTarget.get()
18- kotlinOptions.freeCompilerArgs + = listOf (
19- " -Xexplicit-api=strict" ,
20- " -Xopt-in=kotlin.contracts.ExperimentalContracts"
21- )
18+ tasks.withType<KotlinJvmCompile >().configureEach {
19+ compilerOptions {
20+ jvmTarget.set(JvmTarget .fromTarget(libs.versions.jvmTarget.get()))
21+ freeCompilerArgs.addAll(
22+ listOf (
23+ " -Xexplicit-api=strict" ,
24+ " -Xopt-in=kotlin.contracts.ExperimentalContracts"
25+ )
26+ )
27+ }
2228 }
2329 }
2430
@@ -27,7 +33,7 @@ subprojects {
2733 kotlin {
2834 target(" **/*.kt" )
2935 targetExclude(" $buildDir /**/*.kt" )
30- ktlint().setUseExperimental( true ). editorConfigOverride(
36+ ktlint().editorConfigOverride(
3137 mapOf (
3238 " indent_size" to " 2" ,
3339 " continuation_indent_size" to " 2"
Original file line number Diff line number Diff line change 11object Configuration {
2- const val compileSdk = 34
3- const val targetSdk = 34
2+ const val compileSdk = 36
3+ const val targetSdk = 36
44 const val minSdk = 21
55 const val majorVersion = 1
66 const val minorVersion = 2
Original file line number Diff line number Diff line change 11[versions ]
2- agp = " 8.6.1 "
3- kotlin = " 2.0.21 "
4- dokka = " 1.9 .0"
5- nexusPlugin = " 0.30 .0"
6- kotlinBinaryCompatibility = " 0.16.3 "
7- jvmTarget = " 11 "
2+ agp = " 8.12.0 "
3+ kotlin = " 2.2.10 "
4+ dokka = " 2.0 .0"
5+ nexusPlugin = " 0.34 .0"
6+ kotlinBinaryCompatibility = " 0.18.1 "
7+ jvmTarget = " 17 "
88material = " 1.12.0"
9- androidxActivity = " 1.9.2 "
10- androidxAppCompat = " 1.7.0 "
11- androidxCompose = " 1.7.3 "
12- landscapist = " 2.4 .1"
9+ androidxActivity = " 1.10.1 "
10+ androidxAppCompat = " 1.7.1 "
11+ androidxCompose = " 1.9.0 "
12+ landscapist = " 2.5 .1"
1313coroutines = " 1.7.3"
1414retrofit = " 2.9.0"
1515retrofitAdapters = " 1.0.9"
16- robolectric = " 4.12 .1"
16+ robolectric = " 4.15 .1"
1717spotless = " 6.19.0"
1818
1919[plugins ]
Original file line number Diff line number Diff line change 1- # Tue Oct 15 22:13:09 KST 2024
1+ # Fri Aug 15 16:53:03 KST 2025
22distributionBase =GRADLE_USER_HOME
33distributionPath =wrapper/dists
4- distributionUrl =https\://services.gradle.org/distributions/gradle-8.7 -bin.zip
4+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.13 -bin.zip
55networkTimeout =10000
66zipStoreBase =GRADLE_USER_HOME
77zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change 1- @Suppress(" DSL_SCOPE_VIOLATION" )
1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+ import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
3+
24plugins {
35 id(libs.plugins.android.library.get().pluginId)
46 id(libs.plugins.kotlin.android.get().pluginId)
@@ -30,12 +32,14 @@ android {
3032 }
3133
3234 compileOptions {
33- sourceCompatibility = JavaVersion .VERSION_11
34- targetCompatibility = JavaVersion .VERSION_11
35+ sourceCompatibility = JavaVersion .VERSION_17
36+ targetCompatibility = JavaVersion .VERSION_17
3537 }
3638
37- kotlinOptions {
38- jvmTarget = libs.versions.jvmTarget.get()
39+ kotlin {
40+ compilerOptions {
41+ jvmTarget.set(JvmTarget .fromTarget(libs.versions.jvmTarget.get()))
42+ }
3943 }
4044}
4145
Original file line number Diff line number Diff line change 1+ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13plugins {
24 id(libs.plugins.android.library.get().pluginId)
35 id(libs.plugins.nexus.plugin.get().pluginId)
@@ -39,9 +41,8 @@ kotlin {
3941 }
4042
4143 jvm {
42- libs.versions.jvmTarget.get().toInt()
43- compilations.all {
44- kotlinOptions.jvmTarget = libs.versions.jvmTarget.get()
44+ compilerOptions {
45+ jvmTarget.set(JvmTarget .fromTarget(libs.versions.jvmTarget.get()))
4546 }
4647 }
4748
@@ -66,8 +67,8 @@ android {
6667 }
6768
6869 compileOptions {
69- sourceCompatibility = JavaVersion .VERSION_11
70- targetCompatibility = JavaVersion .VERSION_11
70+ sourceCompatibility = JavaVersion .VERSION_17
71+ targetCompatibility = JavaVersion .VERSION_17
7172 }
7273}
7374
You can’t perform that action at this time.
0 commit comments