snapshot

fun snapshot(init: SnapshotDependency.() -> Unit)

Configures snapshot dependency. When this block is missing, no snapshot dependency will be added.

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

dependencies {
    snapshot(AnotherBuild) {
        reuseBuilds = ReuseBuilds.NO
    }
}

Parameters

init

function to configure snapshot dependency


var snapshot: SnapshotDependency? = null

Snapshot dependency settings or null if there should be no snapshot dependency