-
Notifications
You must be signed in to change notification settings - Fork 452
Closed
Labels
buggood first issueA beginner-friendly issue for which some assistance is expectedA beginner-friendly issue for which some assistance is expectedplugin: kotlin-as-javaAn issue/PR related to Dokka's kotlin-as-java pluginAn issue/PR related to Dokka's kotlin-as-java plugin
Description
Describe the bug
I have a Java project where I am using Dokka. For the proper representation of the documentation for Java, I am using the kotlin-as-java
plugin. The produced documentation does not have access modifiers for functions. I have found out that the problem is with the kotlin-as-java
plugin. Access modifiers are present when the plugin is not applied.
Expected behaviour
Access modifiers should be displayed.
Screenshots
Dokka output with kotlin-as-java
applied.
Dokka output when kotlin-as-java
is not applied.
To Reproduce
- Configure Dokka with the provided below configuration.
- Create a Java class and methods with different access modifiers.
- Run
dokkaHtml
.
Dokka configuration
dependencies {
dokkaPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.6.20")
}
tasks.withType<DokkaTask>().configureEach {
dokkaSourceSets.configureEach {
documentedVisibilities.set(
setOf(
Visibility.PUBLIC,
Visibility.PROTECTED,
)
)
}
}
Installation
- Operating system: macOS
- Build tool: Gradle v7.4.2
- Dokka version: 1.6.20
Metadata
Metadata
Assignees
Labels
buggood first issueA beginner-friendly issue for which some assistance is expectedA beginner-friendly issue for which some assistance is expectedplugin: kotlin-as-javaAn issue/PR related to Dokka's kotlin-as-java pluginAn issue/PR related to Dokka's kotlin-as-java plugin