hi folks! noob question here (just read about dood...
# doodle
j
hi folks! noob question here (just read about doodle and decided to play with it a bit). how can I use coroutines v1.10.2 in a doodle project while it strictly requires v1.8,0?
Copy code
> Cannot find a version of 'org.jetbrains.kotlinx:kotlinx-coroutines-core' that satisfies the version constraints:
              Dependency path 'i9ns-jakubg-playground:web:unspecified' --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2'
              Dependency path 'i9ns-jakubg-playground:web:unspecified' --> 'io.nacular.doodle:controls:0.11.1' (jsRuntimeElements-published) --> 'io.nacular.doodle:controls-js:0.11.1' (jsRuntimeElements-published) --> 'org.jetbrains.kotlinx:kotlinx-coroutines-core:{strictly 1.8.0}'
my setup is basically like in AnimatingForm example:
Copy code
sourceSets {
        // Source set for all platforms
        commonMain.dependencies {
            api(libs.coroutines.core)

            implementation(libs.doodle.controls )
            implementation(libs.doodle.animation)
            implementation(libs.doodle.themes   )
        }
n
hey Jakub! welcome. seems like i need to fix this and have more flexibility in the dependencies. unfortunately, i’m not a gradle expert, so not sure how to work around it in the meantime. you can also try asking in #C19FD9681 .
j
Yeah the thing is that ktor I'm using in my project requires at least coroutines 1.10.2 :)
for future reference 🙂
Copy code
configurations.all {
        resolutionStrategy {
            force(libs.coroutines.core.get())
        }
    }
at the end of my project's gradle file
n
oh nice! so this resolved the issue?
j
Yes 🙂
❤️ 1