diff --git a/JetNews/app/build.gradle b/JetNews/app/build.gradle index 52c7b780ca..4a1fda9065 100644 --- a/JetNews/app/build.gradle +++ b/JetNews/app/build.gradle @@ -51,6 +51,7 @@ android { } composeOptions { + kotlinCompilerVersion kotlin_version kotlinCompilerExtensionVersion compose_version } } @@ -91,14 +92,3 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { jvmTarget = "1.8" } } - -// TODO: Figure out which dependencies need this and force them individually -configurations.configureEach() { - resolutionStrategy { - eachDependency { DependencyResolveDetails details -> - if (details.requested.group == 'org.jetbrains.kotlin') { - details.useVersion kotlin_version - } - } - } -} diff --git a/Rally/app/build.gradle b/Rally/app/build.gradle index 555edd6c67..0518105b23 100644 --- a/Rally/app/build.gradle +++ b/Rally/app/build.gradle @@ -56,6 +56,7 @@ android { } composeOptions { + kotlinCompilerVersion Libs.Kotlin.version kotlinCompilerExtensionVersion Libs.AndroidX.Compose.version } @@ -85,13 +86,3 @@ dependencies { androidTestImplementation Libs.AndroidX.Test.Ext.junit androidTestImplementation Libs.AndroidX.Compose.uiTest } - -configurations.configureEach() { - resolutionStrategy { - eachDependency { DependencyResolveDetails details -> - if (details.requested.group == 'org.jetbrains.kotlin') { - details.useVersion Libs.Kotlin.version - } - } - } -}