Gradle Script plugin to generate documentation by Dokka documentation engine in Javadoc or other formats for Java, Kotlin, Android and non-Android projects. It's very easy, you don't need to add to dependencies section additional classpath or think about compatibility issues, you don't need additional repositories also.
Gradle Script plugin to generate documentation by Dokka documentation engine in Javadoc or other formats for Java, Kotlin, Android and non-Android projects. It’s very easy, you don’t need to add to dependencies
section additional classpath
or think about compatibility issues, you don’t need additional repositories also.
It is up to you.
Add the following at the end of build.gradle
of each sub-module that you wish to generate documentation:
apply from: 'https://raw.github.com/Vorlonsoft/EasyDokkaPlugin/master/dokka.gradle'
You can now generate documentation by Dokka documentation engine in Javadoc or other formats:
$ gradle dokkaJavadocsJar
Get generated documentation from ${buildDir}
directory.
Create project root gradle.properties
. You may already have this file, in which case just edit the original. This file should contain the properties values which are common to all of your sub-projects (if you have any). The values in the sub-project gradle.properties
file are specific to the sub-project (and override those in the root gradle.properties
). For instance, here’s AndroidRate’s:
DOKKA_FATJAR_VERSION = 0.9.17
DOKKA_OUTPUT_FORMAT = javadoc
There are optional properties which can be set:
DOKKA_FATJAR_VERSION (default is "0.9.17")
DOKKA_OUTPUT_FORMAT (default is "javadoc")
Options:
html
- minimalistic html format used by defaultjavadoc
- Dokka mimic to javadochtml-as-java
- as html
but using java syntaxmarkdown
- Markdown structured as html
gfm
- GitHub flavored markdownjekyll
- Jekyll compatible markdownkotlin-website
- internal format used for documentation on kotlinlang.orgSee EasyDokkaPlugin documentation
GradleMavenPush - helper to upload Gradle Android Artifacts, Gradle Java Artifacts and Gradle Kotlin Artifacts to Maven repositories (JCenter, Maven Central, Corporate staging/snapshot servers and local Maven repositories).
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)Copyright 2018 Vorlonsoft LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.