Hi! I'm trying to use Dokka 0.11.0-dev-45 build wi...
# dokka
a
Hi! I'm trying to use Dokka 0.11.0-dev-45 build with an android library project but when I add it to the classpath, it starts giving errors about the android gradle plugin 😕 . When I comment out the Android gradle plugin id, it gives errors about not being able to find the kotlin-android plugin too.
Copy code
An exception occurred applying plugin request [id: 'com.android.library']
> Failed to apply plugin [id 'com.android.internal.version-check']
   > Could not create plugin of type 'VersionCheckPlugin'.
      > Could not initialize class com.android.build.gradle.internal.plugins.VersionCheckPlugin
any idea why this might be? I had two modules (app and lib, but I've removed the app module since). Would really appreciate it because I would like to figure out a way to do ((or contribute) an output format that does Markdown with Java signatures using Dokka 🙂. Thanks
s
I will try to reproduce your issue today (worst case scenario on Monday) 👍
a
Thank you @Sebastian Sellmair [JB]. I can also send you a test project if you like
s
That would be really helpful ☺️ 👍
a
The problematic line is commented with
// ---- PROBLEMATIC LINE BELOW
  in the root build.gradle file. Really appreciate it!
@Sebastian Sellmair [JB] So apparently adding
classpath("com.google.guava:guava:27.0.1-jre")
in the buildscript classpath fixes it. I don't understand why, though. I don't see any usage of guava that would override this in the dokka source/build files. Maybe you have a better idea. Here's the issue that pointed me to the workaround: https://github.com/GoogleContainerTools/jib/issues/591
z
I had the same error, and adding guava to the classpath fixed it for me too. Now i’m getting this exception when running dokka tasks though:
Copy code
> Extension of type ‘KotlinProjectExtension’ does not exist. Currently registered extension types: [ExtraPropertiesExtension, ApiValidationExtension, Boolean]
Edit: Was missing the kotlin plugin. I’m surprised this worked before…
a
@Zach Klippenstein (he/him) [MOD] did it create the documentation for classes? After doing this, I only get the search and navigation html pages and a blank index page for the package.
z
Yea, it worked. I had to open the
index.html
page for the module though, not the
nagivation.html
page.
👍 1
search autocomplete shows the symbols, but clicking on them doesn’t do anything
a
That looks nice. I'll try with workflow maybe
z
there’s definitely some formatting bugs still
subprojects seems to be broken too (only generates a page for the root projects)
s
@Afzal Najam Thanks for your project. I will start to investigate your issue now ☺️
👍 1
We were able to find the issue, but it might some time to resolve this. The workaround of adding guava manually might temporarily be the best option until some dokka release!
a
Awesome! Thank you! @Sebastian Sellmair [JB]
s
Pull Request to track: Core analysis refactoring https://github.com/Kotlin/dokka/pull/1008
Thanks for reporting ☺️ 👍 And big thanks for the sample project!! ❤️
a
Thanks for the follow-up!