diff --git a/android/build-logic/build.gradle.kts b/android/build-logic/build.gradle.kts index 461b39a..99f8fc8 100644 --- a/android/build-logic/build.gradle.kts +++ b/android/build-logic/build.gradle.kts @@ -1,7 +1,15 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + plugins { `kotlin-dsl` } +tasks.withType().configureEach { + kotlinOptions { + jvmTarget = "17" + } +} + dependencies { implementation(libs.android.gradlePlugin) implementation(libs.kotlin.gradlePlugin) diff --git a/android/core/data/build.gradle.kts b/android/core/data/build.gradle.kts index a8c4b4d..23a0d4d 100644 --- a/android/core/data/build.gradle.kts +++ b/android/core/data/build.gradle.kts @@ -19,10 +19,6 @@ android { buildConfigField("String", "BASE_URL", localProperties["server.url"] as String) } - kotlinOptions { - jvmTarget = "17" - } - buildFeatures { buildConfig = true } diff --git a/android/core/ui/build.gradle.kts b/android/core/ui/build.gradle.kts index f52498a..5cbcdfd 100644 --- a/android/core/ui/build.gradle.kts +++ b/android/core/ui/build.gradle.kts @@ -7,10 +7,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.core.ui" - kotlinOptions { - jvmTarget = "17" - } - buildFeatures { dataBinding = true } diff --git a/android/feature/home/build.gradle.kts b/android/feature/home/build.gradle.kts index d5ec7a6..66a0499 100644 --- a/android/feature/home/build.gradle.kts +++ b/android/feature/home/build.gradle.kts @@ -5,10 +5,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.feature.home" - - kotlinOptions { - jvmTarget = "17" - } } dependencies { diff --git a/android/feature/login/build.gradle.kts b/android/feature/login/build.gradle.kts index e8c4b19..c6be47b 100644 --- a/android/feature/login/build.gradle.kts +++ b/android/feature/login/build.gradle.kts @@ -17,9 +17,6 @@ android { buildConfigField("String", "GOOGLE_CLIENT_ID", localProperties["google.client.id"] as String) } - kotlinOptions { - jvmTarget = "17" - } buildFeatures { buildConfig = true } diff --git a/android/feature/mypage/build.gradle.kts b/android/feature/mypage/build.gradle.kts index 50f9ceb..9dccce4 100644 --- a/android/feature/mypage/build.gradle.kts +++ b/android/feature/mypage/build.gradle.kts @@ -5,10 +5,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.feature.mypage" - - kotlinOptions { - jvmTarget = "17" - } } dependencies { diff --git a/android/feature/player/build.gradle.kts b/android/feature/player/build.gradle.kts index 60cbdc1..fcfe2d0 100644 --- a/android/feature/player/build.gradle.kts +++ b/android/feature/player/build.gradle.kts @@ -5,10 +5,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.feature.player" - - kotlinOptions { - jvmTarget = "17" - } } dependencies { diff --git a/android/feature/playlist/build.gradle.kts b/android/feature/playlist/build.gradle.kts index 9dab8be..d3ef781 100644 --- a/android/feature/playlist/build.gradle.kts +++ b/android/feature/playlist/build.gradle.kts @@ -5,10 +5,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.feature.playlist" - - kotlinOptions { - jvmTarget = "17" - } } dependencies { diff --git a/android/feature/search/build.gradle.kts b/android/feature/search/build.gradle.kts index 3473d3a..b2c0d48 100644 --- a/android/feature/search/build.gradle.kts +++ b/android/feature/search/build.gradle.kts @@ -5,10 +5,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.feature.search" - - kotlinOptions { - jvmTarget = "17" - } } dependencies { diff --git a/android/feature/upload/build.gradle.kts b/android/feature/upload/build.gradle.kts index e8aeac2..693f064 100644 --- a/android/feature/upload/build.gradle.kts +++ b/android/feature/upload/build.gradle.kts @@ -5,10 +5,6 @@ plugins { android { namespace = "com.ohdodok.catchytape.catchytape.upload" - - kotlinOptions { - jvmTarget = "17" - } } dependencies {