snapshot

fun snapshot(buildType: BuildType, init: SnapshotDependency.() -> Unit)

Adds a snapshot dependency on the specified buildType

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

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

Parameters

buildType

buildType to depend on

init

function to initialize the snapshot dependency


fun snapshot(buildTypeId: Id, init: SnapshotDependency.() -> Unit)

Adds a snapshot dependency on the buildType with the specified id

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

dependencies {
snapshot("AnotherBuildId") {
reuseBuilds = ReuseBuilds.NO
}
}

Parameters

buildTypeId

id of the buildType to depend on

init

function to initialize the snapshot dependency