Has anyone managed to apply dokka-gradle-plugin in...
# dokka
p
Has anyone managed to apply dokka-gradle-plugin in a precompiled script plugin (buildSrc/src/main/kotlin) when using Gradle Kotlin DSL? I'm getting a version conflict between Kotlin 1.3.72 (required by Gradle) and Kotlin 1.4 (required by dokka-gradle-plugin).
e
I'm doing it. It does generate warnings, but it still works though. In case you want to see the build scripts: https://github.com/erikc5000/island-time
s
Testing our current 1.4.0 branch with your
island-time
repository right now. What a wonderfully well maintained project 😍 Very cool Erik! 👍
I hope we will support HMPP soon! Luckily your
Copy code
val darwinTargets = if (ideaActive) {
        listOf(iosX64("darwin"))
    } else {
        listOf(iosArm64(), iosX64(), macosX64(), watchosArm64(), watchosX86(), tvosArm64(), tvosX64())
    }
Works well for dokka when launched by the IDE 🙄
e
Thanks! Despite some rough edges right now, the overall quality of the output from Dokka 1.4 seems to be quite a bit better than before -- at least for a multiplatform project. I have kind of an interesting setup since I'm using Mkdocs to do the documentation website (https://islandtime.io), which relies on Markdown. I was able to create a Dokka plugin based on the existing GFM plugin code to sort of hack the Markdown output into something presentable for that purpose. I'm definitely liking the plugin architecture! The biggest issue I've noticed is that I'm still getting <ERROR_CLASS> for all the Darwin platform types.
s
Hmm! Running your project from terminal results in the same effect for me (cause HMPP not being properly supported)
But running it from the IDE works fine (since you do the trick mentioned above) ☺️
I am on vacation next week, but would you like having a Google Meet call with me to investigate that after my vacation? ☺️
e
Sure - just DM me and we can figure something out.