Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Gradle plugin

Dependency

gradle.properties

Add the version of documentation-generator you want to use in gradle.properties.

documentationGeneratorVersion = 1.16.0

build.gradle

Now you can add a dependency to the gradle-plugin.

buildscript {
    dependencies {
        classpath("dk.fust:documentation-generator-gradle:${documentationGeneratorVersion}")
    }
}

You can instead of the variable ${documentationGeneratorVersion} simply write the version here.

For every kind of documentation you want generated, you'll need to add the corresponding dependency in the buildscript-section.

For example:

classpath("dk.fust:documentation-generator-erdiagram:${documentationGeneratorVersion}")

Gradle task

Configuration in build.gradle

documentationGenerator {
  generatorConfigurations = [
        ... list of configurations ...
  ]
}

Configuration in separate file

Another option is to have your configuration in a separate file. See here the description of the configuration file

The list of configurations consists of the desired configurations.

documentationGenerator {
    documentationConfigurationFile = new File('generator-configuration.yml')
}

Generate documentation

To generate documentation, run:

gradle generateDocumentation