ExecD2

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

Executes d2 with the configured inputs to generate an image file. Requires D2 to be pre-installed.

Just so I don't forget, classesFile is only used to force regeneration if the classes file updates, since we don't directly read it in this task.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
@get:Input
@get:Optional
abstract val animateInterval: Property<Int>
Link copied to clipboard
@get:PathSensitive(value = PathSensitivity.NONE)
@get:InputFile
abstract val classesFile: RegularFileProperty
Link copied to clipboard
@get:Input
@get:Optional
abstract val cliArguments: MapProperty<String, String>
Link copied to clipboard
open override var description: String
Link copied to clipboard
@get:Inject
abstract val execOperations: ExecOperations
Link copied to clipboard
@get:PathSensitive(value = PathSensitivity.NONE)
@get:InputFile
abstract val inputFile: RegularFileProperty
Link copied to clipboard
@get:OutputFile
abstract override val outputFile: RegularFileProperty
Link copied to clipboard
@get:Input
abstract val outputFormat: Property<FileFormat>
Link copied to clipboard
@get:Input
@get:Optional
abstract val pathToD2Command: Property<String>

Functions

Link copied to clipboard
fun execute()
Link copied to clipboard
open override fun getDescription(): String