From 79254d96425d68a2ef58df6b28c89eea6ee26e4c Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 5 Nov 2023 06:40:58 -0800 Subject: [PATCH] Added more Dokka options --- README.md | 26 ++- examples/.idea/misc.xml | 4 + .../bld/java/com/example/ExampleBuild.java | 2 + .../src/main/kotlin/com/example/Example.kt | 15 ++ .../bld/extension/dokka/DokkaOperation.java | 119 +++++++++++-- .../rife/bld/extension/dokka/SourceSet.java | 168 +++++++++++++++--- 6 files changed, 298 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 8a8b01c..239a949 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ To install, please refer to the [extensions documentation](https://github.com/rife2/bld/wiki/Extensions). -To compile the Kotlin source code from the current project located in `src/main/kotlin` and `src/test/kotlin`: +## Compile Kotlin Source Code +To compile the source code located in `src/main/kotlin` and `src/test/kotlin` from the current project: ```java @BuildCommand(summary = "Compile the Kotlin project") @@ -27,4 +28,25 @@ public void compile() throws IOException { ``` - [View Examples Project](https://github.com/rife2/bld-kotlin/tree/main/examples/) -Please check the [Compile Operation documentation](https://rife2.github.io/bld-kotlin/rife/bld/extension/CompileKotlinOperation.html#method-summary) for all available configuration options. +Please check the [Compile Operation documentation](https://rife2.github.io/bld-kotlin/rife/bld/extension/CompileKotlinOperation.html#method-summary) +for all available configuration options. + +## Generate Javadoc + +To generate the Javadoc using [Dokka](https://github.com/Kotlin/dokka): + +```java +@BuildCommand(summary = "Generates Javadoc for the project") +public void javadoc() throws ExitStatusException, IOException, InterruptedException { + new DokkaOperation() + .fromProject(this) + .execute(); +} +``` +``` +./bld javadoc +``` +- [View Examples Project](https://github.com/rife2/bld-kotlin/tree/main/examples/) + +Please check the [Dokka Operation documentation](https://rife2.github.io/bld-kotlin/rife/bld/extension/dokka/DokkaOperation.html) +for all available configuration options. diff --git a/examples/.idea/misc.xml b/examples/.idea/misc.xml index a89d571..ba68603 100644 --- a/examples/.idea/misc.xml +++ b/examples/.idea/misc.xml @@ -1,5 +1,9 @@ + + + +