Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Frisch12 authored Aug 29, 2022
1 parent 7544520 commit 2a0e81e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions plantuml-plugin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# PlantUML plugin

This plugin generates images from plantuml files.

## Basic usage
```
plugins {
id "io.freefair.plantuml"
}
```
This adds a PlantUML task to gradle as well as a new source set. The images will be saved to the build directory.

## Configuration options
| Option | Description | Default |
|-------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|
| `includePattern` | Pattern for filenames to include in the image generation process. This is different to `source` so that changes in included files will trigger a recompile as well | `**/*.puml` |
| `fileFormat` | File format to generate. All valid options for PlantUML can be chosen. | `PNG` |
| `outputDirectory` | Directory to save generated files in. | `build/plantuml` |

## Custom Task
```
tasks.register("plantUml2", PlantumlTask) {
source("src/plantuml2")
includePattern = "**/*.tuml"
fileFormat = "SVG"
outputDirectory = layout.buildDirectory.dir("dist2")
}
```

0 comments on commit 2a0e81e

Please sign in to comment.