writeMarker

fun RegularFileProperty.writeMarker(vararg entries: Pair<String, Any>)

Writes a key-value marker file for Gradle up-to-date checks.

A marker records status; it does not replace declarations of consumed files or produced artifacts. Source-editing and live-environment checks must define their own execution policy, since restoring a marker cannot reproduce their side effects.

Usage:

// Simple status marker
markerFile.writeMarker("status" to "ok", "files" to "12")

// From a map
markerFile.writeMarker(mapOf("applied" to 3, "skipped" to 0, "missing" to 0))

fun RegularFileProperty.writeMarker(entries: Map<String, Any>)

Writes a key-value marker file from a map.