jetbrains.buildServer.configs.kotlin.v10 / Dependencies

Dependencies

class Dependencies

Collection of dependencies in build configuration or template

Constructors

<init>

Dependencies(base: Dependencies? = null, init: Dependencies.() -> Unit = {})
Dependencies(_items: List<Dependency>?)

Functions

artifacts

fun artifacts(buildType: BuildType, init: ArtifactDependency.() -> Unit = {}): Unit
fun artifacts(buildTypeExtId: String, init: ArtifactDependency.() -> Unit = {}): Unit

Adds an artifact dependency on the specified buildType

dependency

fun dependency(buildType: BuildType, init: Dependency.() -> Unit = {}): Unit

Adds a dependency on specified buildType, it should be further configured using snapshot() and artifacts() methods

fun dependency(buildTypeExtId: String, init: Dependency.() -> Unit = {}): Unit

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

plus

operator fun plus(other: Dependencies): Dependencies

snapshot

fun snapshot(buildType: BuildType, init: SnapshotDependency.() -> Unit = {}): Unit
fun snapshot(buildTypeExtId: String, init: SnapshotDependency.() -> Unit = {}): Unit

Adds a snapshot dependency on the specified buildType