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({
// ...
})








Parameters

bt

bt to register

See also


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

Parameters

init

initialization block

See also