This Plugin supports easy documentation in AsciiDoc format and also JavaDoc in AsciiDoc format. For that is an comprehensive configuration defined.
The plugins are configured via the gradle file in a configuration block gematikDocumentation {}. The following parameters are available:
Table TitleParameter | Description | Mandatory | Default-Value | Used by |
---|---|---|---|---|
projectShortcut |
Jira abbreviation for the project |
✓ |
— |
|
plantUmlDestinationFolder |
Target directory for copying PlantUmls from src/main/java/** |
✗ |
doc/plantuml/{projectShortcut} |
|
javadocUrl |
Title link URL for Javadoc |
✗ |
— |
|
javadocOverviewAdoc |
Document that should be shown in the overview with Javadoc |
✗ |
doc/userguide/{projectShortcut}_Introduction.adoc |
|
javadocDestinationFolder |
Output-Directory for JavaDocs |
✗ |
Gradle Default is ${project.docsDir}/javadoc |
|
javadocAttributesFile |
Configuration file for Asciidocs in Javadoc |
✗ |
doc/javadoc/config.adoc |
|
documentVersionReference |
Name of the reference in the Asciidoc documents to be replaced with the current Project version |
✗ |
version_{projectShortcut} |
|
asciidocRootSourceDir |
Source root folder for {asciidocRootSourceDir}/userguide/{projectShortcut}_Main.adoc |
✗ |
doc |
|
asciidocDestinationFolder |
Output-Directory for Asciidocs |
✗ |
${project.buildDir.path}/documentation |
|
Example Configuration.
gematikDocumentation {
projectShortcut = "HCARDA"
documentVersionReference = "version_healthcard_access"
}
This plugin defines global settings and basis for the following plugins. This plugin adds the following other plugins, dependencies and tasks:
PluginId | Version | Additional Information |
---|---|---|
com.github.jruby-gradle.bas |
1.6.0 |
https://plugins.gradle.org/plugin/com.github.jruby-gradle.base |
com.github.jeysal.graphviz |
1.4.1 |
Dependency | Configuration | Version | Additional Information |
---|---|---|---|
org.asciidoctor:asciidoclet |
asciidoclet |
1.5.6 |
|
rubygems:asciidoctor |
gems |
1.5.8 |
|
rubygems:asciidoctor-diagram |
gems |
1.5.19 |
|
rubygems:concurrent-ruby |
gems |
1.1.5 |
This task copies all *.plantuml files from PROJECT/src/main/java to {plantUmlDestinationFolder}
Add copyPlantumlsToDocDir.
buildscript {
dependencies {
classpath "de.gematik:documentation-plugin:1.2.0"
}
}
apply plugin: "de.gematik.asciidoctor"
This plugin creates the JavaDoc with Plantumls and Asciidoc Files. The plugin functionality would automatically executed for publishToMavenLocal task or manuel with
#> gradle javadoc (this task also calls the copyPlantumlsToDocDir task)
Output: {javadocDestinationFolder} or default PROJECT\build\docs\javadoc
PluginId |
Version |
Additional Information |
org.asciidoctor.convert |
1.4.1 |
Add JavaDocPlugin.
buildscript {
dependencies {
classpath "de.gematik:documentation-plugin:1.2.0"
}
}
apply plugin: "de.gematik.javadoc"
This plugin takes care of generation AsciiDoc in PDF and HTML pages. The source file {asciidocRootSourceDir}/userguide/{projectShortcut}_Main.adoc is used.
Manual execution: #> gradle asciidoctor (This task also calls the copyPlantumlsToDocDir task)
Output: {asciidocDestinationFolder}
PluginId |
Version |
Additional Information |
org.asciidoctor.convert |
1.4.1 |
Add JavaDocPlugin.
buildscript {
dependencies {
classpath "de.gematik:documentation-plugin:1.2.0"
}
}
apply plugin: "de.gematik.asciidoctor"
The Plugin needs the following repository definition in your init.gradle
Add Repository jcenter.
allprojects {
buildscript {
repositories {
jcenter()
}
}
}
or this
Add Repository plugins.gradle.org.
allprojects {
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
}