build: force correct coroutines and kotlin-reflect artifacts

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-09-23 16:35:08 +05:30
parent 29e72da327
commit 64ac515ed0
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -2,6 +2,7 @@
buildscript {
ext {
compose_version = '1.0.0-alpha03'
coroutines_version = '1.3.9'
dagger_version = '2.29.1'
hilt_version = '2.29-alpha'
kotlin_version = '1.4.10'
@ -50,6 +51,13 @@ subprojects {
targetCompatibility JavaVersion.VERSION_1_8
}
}
configurations.all {
resolutionStrategy {
force "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
force "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
force "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = '1.8'