FileReferenceOutputArtifact
data class FileReferenceOutputArtifact(val name: String, val file: File, val useChecksumInvalidation: Boolean = false) : OutputResource
An OutputResource backed by a file on the filesystem. Instead of holding content in memory, it references a file that is efficiently copied to the output location.
Parameters
name
the output file name (with extension, since the original file name is used as-is)
file
the source file (or directory) to copy
useChecksumInvalidation
whether to also create a checksum file for this artifact, used for incremental builds to determine whether the artifact has changed since the last build and should be recreated.