-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | ||
} | ||
``` |