question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dokka is not exporting all private functions with version 1.7.20

See original GitHub issue

Dokka is not exporting all private functions with version 1.7.20 With the latest version I tried to export all my private functions but it doesn’t.

Here is my build.gradle code in app level:

dokkaHtml.configure {
        dokkaSourceSets {
            named("main") {
                noAndroidSdkLink.set(false)
                includeNonPublic.set(true)
                skipDeprecated.set(true)
            }
        }
    }

Let me know if I’m doing wrong and also guide me on how do I export each of my private functions/methods with the help of Dokka’s latest version.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IgnatBeresnevcommented, Oct 19, 2022

Hi! If it’s regression going from 1.7.10 to 1.7.20, could you give more details? Which functions exactly is it not exporting that it used to? A reproducer would help a lot

You may also want to try documentedVisibilities configuration property instead of the deprecated includeNonPublic:

...
    dokkaSourceSets {
            documentedVisibilities.set(
                setOf(
                    DokkaConfiguration.Visibility.PUBLIC, // Same for both Kotlin and Java
                    DokkaConfiguration.Visibility.PRIVATE, // Same for both Kotlin and Java
                    DokkaConfiguration.Visibility.PROTECTED, // Same for both Kotlin and Java
                    DokkaConfiguration.Visibility.INTERNAL, // Kotlin-specific internal modifier
                    DokkaConfiguration.Visibility.PACKAGE, // Java-specific package-private visibility
                )
            )
        }
    }
...
0reactions
IgnatBeresnevcommented, Dec 14, 2022

I’ll close the issue as resolved, but do let us know if it’s still relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dokka not generating anything in multi-module project #2583
Describe the bug Following the Dokka multi-module guide (found here), Dokka generates empty directories for all my modules.
Read more >
Dokka for data class is not displayed in Android Studio
When using Dokka to document a data class /** * Data class for which we want documentation */ data class DokkaData( /** A...
Read more >
Using the Gradle plugin - Dokka
If you encounter any problems when migrating from older versions of Dokka, please see the ... PRIVATE, // Same for both Kotlin and...
Read more >
Changelog and Migration Guide - Detekt
This version of Detekt is built with Gradle v7.5.1 , AGP 7.3.1 , Kotlin ... detektVersionReplace.js plugin is not replacing all [detekt_version] tags...
Read more >
Documenting Kotlin Code Using KDoc and Dokka
@sicne: The version to start supporting. @receiver: Document the extension function. @suppress: Don't export this function to the documentation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found