From bc581d763b3fa7c23026b9c7994da22393d5d3be Mon Sep 17 00:00:00 2001 From: klaus Date: Wed, 22 Oct 2025 13:50:42 +0900 Subject: [PATCH] =?UTF-8?q?fix(build):=20Room=20KAPT=E2=86=92KSP=20?= =?UTF-8?q?=EB=A7=88=EC=9D=B4=EA=B7=B8=EB=A0=88=EC=9D=B4=EC=85=98=20?= =?UTF-8?q?=EB=B0=8F=20configuration=20cache=20=EB=B9=84=ED=99=9C=EC=84=B1?= =?UTF-8?q?=ED=99=94=EB=A1=9C=20Kotlin=202.0=20=EB=B9=8C=EB=93=9C=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Room을 2.6.1로 업데이트하고 KAPT를 KSP로 전환 - room-rxjava3 의존성 추가(RxJava3 반환 타입 지원) - ObjectBox 플러그인과 충돌 회피를 위해 configuration cache 비활성화 - AGP 8.4.2 + Kotlin 2.0.21 환경에서 빌드 성공 확인 --- app/build.gradle | 9 +++++---- build.gradle | 9 +++++---- gradle.properties | 2 +- gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index acf18b59..58c1f318 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -4,7 +4,7 @@ plugins { id 'com.google.gms.google-services' id 'com.google.android.gms.oss-licenses-plugin' - id 'kotlin-kapt' + id 'com.google.devtools.ksp' id 'kotlin-parcelize' id 'org.jlleitschuh.gradle.ktlint' @@ -181,9 +181,10 @@ dependencies { implementation "com.android.billingclient:billing-ktx:6.2.0" // ROOM - kapt "androidx.room:room-compiler:2.5.0" - implementation "androidx.room:room-ktx:2.5.0" - implementation "androidx.room:room-runtime:2.5.0" + ksp "androidx.room:room-compiler:2.6.1" + implementation "androidx.room:room-ktx:2.6.1" + implementation "androidx.room:room-runtime:2.6.1" + implementation "androidx.room:room-rxjava3:2.6.1" implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" diff --git a/build.gradle b/build.gradle index 94207a92..704d14fb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { ext { - kotlin_version = '1.8.0' + kotlin_version = '2.0.21' } repositories { google() @@ -17,9 +17,10 @@ buildscript { } plugins { - id 'com.android.application' version '8.1.1' apply false - id 'com.android.library' version '8.1.1' apply false - id 'org.jetbrains.kotlin.android' version '1.8.20' apply false + id 'com.android.application' version '8.4.2' apply false + id 'com.android.library' version '8.4.2' apply false + id 'org.jetbrains.kotlin.android' version '2.0.21' apply false + id 'com.google.devtools.ksp' version '2.0.21-1.0.25' apply false id "org.jlleitschuh.gradle.ktlint" version "11.2.0" id 'com.google.gms.google-services' version '4.3.15' apply false diff --git a/gradle.properties b/gradle.properties index 00ecaf19..edff29cf 100644 --- a/gradle.properties +++ b/gradle.properties @@ -20,7 +20,7 @@ kotlin.code.style=official # Enables namespacing of each library's R class so that its R class includes only the # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library -org.gradle.configuration-cache=true +org.gradle.configuration-cache=false android.nonTransitiveRClass=true android.defaults.buildfeatures.buildconfig=true android.enableJetifier=true diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 8d9730be..cf4648e1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ #Sun Jul 23 18:26:44 KST 2023 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists