Hi folks, im trying to run `./gradlew dokkaHtml` ...
# dokka
g
Hi folks, im trying to run
./gradlew dokkaHtml
for a simple project but im getting the error
Copy code
* What went wrong:
Execution failed for task ':dokkaHtml'.
> 'void kotlinx.coroutines.Dispatchers.shutdown()'
Anyone has encountered anything similar? Kotlin Version: 1.6.21 Dokka Version: 1.6.21
Here is a simple project which reproduces the error: https://github.com/GeorgePap-719/simple-springboot-kotlin/tree/dokka
g
Did you try to update coroutines to 1.6.1 ?
g
yup, i just did. still the same..
i
Huh, weird. I know where it might be coming from, but I have no idea why. I'll have a quick look later today, thank you for the reproducer
🙏 1
But yeah, I'm almost sure it's related to an outdated coroutines version. The method it's complaining about should be present in coroutines 1.6.0 (issue), but it seems that for some reason Dokka sees coroutines <=1.5.2 on the classpath... No idea why at the moment
g
indeed, there is on my classpath kotlinx-coroutines-core-jvm:1.5.2, not sure why tho.
i
Spring boot 2.6.7 seems to be using coroutines 1.5.2: https://github.com/spring-projects/spring-boot/blob/5abc680c7dffec632c521c5ed66cc3[…]aec79/spring-boot-project/spring-boot-dependencies/build.gradle They've migrated to 1.6.1 in 2.7.0, but it hasn't been released yet 😞
😢 1
g
Thanks for your help tho, appreciate it
i
We'll think how to avoid such problems in the future, I guess not everyone migrates to the latest coroutines straight away. Thanks for reporting the problem! You can try locking coroutines 1.6.0/1.6.1 in your buildscript somehow, i.e make spring use newer coroutines, maybe it'll work
Or just downgrade to Dokka 1.6.10, it should work 🙂 There are some visual enhancements missing, but it'll be enough for you to get acquainted with Dokka
g
indeed, it works like a charm.
🎉 1