common-plugin / com.cognifide.gradle.common.tasks / TaskFacade

TaskFacade

class TaskFacade : Serializable

Constructors

<init>

TaskFacade(project: Project)

Properties

checks

val checks: List<Task>

project

val project: Project

tests

val tests: List<Test>

Functions

composeException

fun composeException(taskName: String, type: Class<*>? = null, cause: Exception? = null, project: Project = this.project): CommonException

define

fun define(name: String, configurer: CommonDefaultTask.() -> Unit = {}): TaskProvider<CommonDefaultTask>

get

fun <T : Task> get(path: String): T

getAll

fun <T : Task> getAll(): List<T>

getAllSafely

fun <T : Task> getAllSafely(type: Class<T>): List<T>

getSafely

fun getSafely(path: String): Task?

named

fun <T : Task> named(name: String, configurer: T.() -> Unit = {}): TaskProvider<T>

pathed

fun <T : Task> pathed(path: String): TaskProvider<T>
fun pathed(paths: Collection<Any>): List<TaskProvider<out Task>>

register

fun <T : Task> register(name: String, configurer: T.() -> Unit = {}): TaskProvider<T>

registerSequence

fun registerSequence(name: String, sequenceOptions: TaskSequence.() -> Unit): TaskProvider<Task>
fun registerSequence(name: String, taskOptions: Task.() -> Unit, sequenceOptions: TaskSequence.() -> Unit): TaskProvider<Task>

typed

fun <T : Task> typed(configurer: T.() -> Unit): Unit