Dokka: Unable to build KDoc under JDK9

Created on 4 Oct 2017  路  4Comments  路  Source: Kotlin/dokka

When trying to build the KDoc using dokka and the gradle plugin, I get the following error:

Download http://repo.spring.io/plugins-release/org/jetbrains/dokka/dokka-fatjar/0.9.15/dokka-fatjar-0.9.15.pom
Download http://repo.spring.io/plugins-release/org/jetbrains/dokka/dokka-fatjar/0.9.15/dokka-fatjar-0.9.15.jar
:dokka FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':dokka'.
> Unable to make field private static final jdk.internal.misc.Unsafe jdk.internal.misc.Unsafe.theUnsafe accessible: module java.base does not "opens jdk.internal.misc" to unnamed module @5dd3a459

As visible in the logs I'm using dokka 0.9.15. I'm also using the kotlin-gradle-plugin v1.1.51.

Note that I also configured the dokka task in a way to work around #217

Most helpful comment

All 4 comments

Any plans to fix it?

@semoro thanks.

Fixed in 0.9.16

Was this page helpful?
0 / 5 - 0 ratings