aboutsummaryrefslogtreecommitdiff
path: root/plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt')
-rw-r--r--plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt17
1 files changed, 5 insertions, 12 deletions
diff --git a/plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt b/plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt
index 04a63fca..b390751c 100644
--- a/plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt
+++ b/plugins/kotlin-as-java/src/main/kotlin/KotlinAsJavaPlugin.kt
@@ -12,19 +12,12 @@ class KotlinAsJavaPlugin : DokkaPlugin() {
CoreExtensions.documentableTransformer with KotlinAsJavaDocumentableTransformer()
}
val javaSignatureProvider by extending {
- val dokkaBasePlugin = plugin<DokkaBase>()
- dokkaBasePlugin.signatureProvider providing { ctx ->
- JavaSignatureProvider(ctx.single(dokkaBasePlugin.commentsToContentConverter), ctx.logger)
- } override dokkaBasePlugin.kotlinSignatureProvider
+ with(plugin<DokkaBase>()) {
+ signatureProvider providing ::JavaSignatureProvider override kotlinSignatureProvider
+ }
}
val kotlinAsJavaDocumentableToPageTranslator by extending {
- val dokkaBasePlugin = plugin<DokkaBase>()
- CoreExtensions.documentableToPageTranslator providing { ctx ->
- KotlinAsJavaDocumentableToPageTranslator(
- ctx.single(dokkaBasePlugin.commentsToContentConverter),
- ctx.single(dokkaBasePlugin.signatureProvider),
- ctx.logger
- )
- } override dokkaBasePlugin.documentableToPageTranslator
+ CoreExtensions.documentableToPageTranslator providing ::KotlinAsJavaDocumentableToPageTranslator override
+ plugin<DokkaBase>().documentableToPageTranslator
}
} \ No newline at end of file