I am facing a compilation error when generating the Dokka output. However, the problem does not appear when compiling the project normally (./gradlew check).
It seems Dokka cannot find the standard library, and complains about many symbols from it:
e: file:///…/src/commonMain/kotlin/Parameters.kt:46:31 Unresolved reference: HashMap
e: file:///…/src/commonMain/kotlin/Parameters.kt:120:3 Unresolved reference: JvmInline
e: file:///…/commonMain/kotlin/Parameters.kt:141:4 Unresolved reference: require
e: file:///…/src/commonMain/kotlin/Parameters.kt:141:17 Unresolved reference: isNotBlank
Reproduction:
- Clone the repository https://gitlab.com/opensavvy/spine.git
- Checkout commit
a5dede751c40d143b671b12e33df2ac769e3fdfd
- Run
./gradlew check ← passes
- Run
./gradlew :dokkatooGeneratePublicationHtml ← fails with compilation error
The full output of the failed execution is available here.
I am facing a compilation error when generating the Dokka output. However, the problem does not appear when compiling the project normally (
./gradlew check).It seems Dokka cannot find the standard library, and complains about many symbols from it:
Reproduction:
a5dede751c40d143b671b12e33df2ac769e3fdfd./gradlew check← passes./gradlew :dokkatooGeneratePublicationHtml← fails with compilation errorThe full output of the failed execution is available here.