common-plugin / com.cognifide.gradle.common.build / BuildScope

BuildScope

class BuildScope

Constructors

<init>

BuildScope()

Functions

doOnce

fun doOnce(operation: String, action: () -> Unit): Boolean?

get

fun <T : Any> get(key: String): T?

getOrPut

fun <T : Any> getOrPut(key: String, defaultValue: () -> T): T
fun <T : Any> getOrPut(key: String, defaultValue: () -> T, invalidate: Boolean): T

put

fun <T : Any> put(key: String, value: T): Unit

tryGetOrPut

fun <T : Any> tryGetOrPut(key: String, defaultValue: () -> T?): T?

Companion Object Functions

of

fun of(project: Project): BuildScope