jetbrains.buildServer.configs.kotlin.v2018_1 / Dependencies

Dependencies

class Dependencies

Collection of dependencies in build configuration or template

Constructors

<init>

Dependencies()

Collection of dependencies in build configuration or template

Functions

artifacts

fun artifacts(buildType: BuildType, init: ArtifactDependency.() -> Unit): Unit

Adds an artifact dependency on the specified buildType

fun artifacts(buildTypeId: Id, init: ArtifactDependency.() -> Unit): Unit

Adds an artifact dependency on the buildType with the specified id

dependency

fun dependency(buildTypeId: IdOwner, init: Dependency.() -> Unit): Unit

Adds a dependency on the buildType with the specified id, it should be further configured using snapshot() and artifacts() methods. Useful when buildType is not defined in kotlin.

snapshot

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

Adds a snapshot dependency on the specified buildType

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

Adds a snapshot dependency on the buildType with the specified id

Extension Functions

copy

fun Dependencies.copy(): Dependencies

Copies the receiver dependencies

copyTo

fun Dependencies.copyTo(target: Dependencies): Dependencies

Copies the receiver dependencies to the specified target