WriteReadme

@CacheableTask
abstract class WriteReadme : DefaultTask, AtlasGenerationTask, TaskWithOutputFile(source)

Creates or updates a README.md file to inject the generated chart/legend files. If the readme contains a block like below:

Something above

<!--region chart-->
Anything in between
<!--endregion-->

Something below

then the text in between will be replaced with the generated images. Anything outside will be left as-is.

If generating a new README, the output will look like below:

# :path:to:my:module

<!--region chart-->
![](atlas/chart.png)
![](../atlas/legend.png)
<!--endregion-->

Remember, this readme task will also be run when calling gradle atlasGenerate.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@get:PathSensitive(value = PathSensitivity.NONE)
@get:InputFile
abstract val chartFile: RegularFileProperty
Link copied to clipboard
@get:PathSensitive(value = PathSensitivity.NONE)
@get:InputFile
@get:Optional
abstract val legendFile: RegularFileProperty
Link copied to clipboard
@get:OutputFile
abstract override val outputFile: RegularFileProperty
Link copied to clipboard
@get:Input
abstract val projectPath: Property<String>
Link copied to clipboard
@get:Internal
abstract val readmeFile: RegularFileProperty

Functions

Link copied to clipboard
fun execute()