buildType

fun buildType(bt: BuildType)

Registers the specified buildType in this project.

Example. Build configuration defined in-place

object Main: Project({
name = "Main"
description = "The project main branch"

buildType(RunTests)
})

object RunTests: BuildType({
// ...
})

See also

Parameters

bt

bt to register


fun buildType(init: BuildType.() -> Unit): BuildType

Registers a new buildType initialized with the specified block in this project.

Example. Build configuration defined in-place

buildType {
id("Build")
name = "Build"

steps {
gradle {
tasks = "clean build"
}
}
}

Return

added buildType

See also

Parameters

init

initialization block