-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating documentation fails with "java.lang.NoSuchMethodError: 'void kotlinx.coroutines.Dispatchers.shutdown()'" #2545
Comments
Hi! This method was added in kotlinx.coroutines 1.6 (see Kotlin/kotlinx.coroutines#2558), so you must be using an old version of that. Please make sure kotlinx.coroutines is >=1.6 ( |
Thanks, @IgnatBeresnev, we have
I'll try to further investigate the issue, if anyone spots an obvious mistake, please don't hesitate to comment. 😃 |
🤦 Spring dependency management pulled in 1.5.2. Using Spring Boot 2.7.0 instead of 2.6.7 fixes this issue. |
If Spring Boot cannot be upgraded, a workaround is to override the dependencyManagement {
imports {
mavenBom(SpringBootPlugin.BOM_COORDINATES) {
// Dokka 1.8.20+ requires kotlinx-coroutines-core 1.6.x,
// but spring-boot-dependencies 2.6.5 declares kotlin-coroutines-core 1.5.2 as a dependency management
bomProperty("kotlin-coroutines.version", "1.6.4")
}
}
} (unlike other approaches, this does not add |
Describe the bug
Generating documentation with gradle 7.4.2 and dokkaHtml plugin fails when using Dokka 1.7.0 (1.6.X also fails, but with another error message). Last known working version is 1.5.30 The following stacktrace is generated when using gradle --stacktrace:
Expected behaviour
Documentation should be generated
To Reproduce
Dokka configuration
Installation
Additional context
Generation also fails when using gradle's docker image. Another project works fine using identical kotlin/kotlin-coroutines versions and identical configuration.
The text was updated successfully, but these errors were encountered: