snapshot

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


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