common-plugin / com.cognifide.gradle.common.notifier / NotifierFacade

NotifierFacade

class NotifierFacade

Properties

common

val common: CommonExtension

enabled

Turn on/off default system notifications.

val enabled: Property<Boolean!>!

iconFailure

Project specific build failure image at path relative to root project.

val iconFailure: RegularFileProperty!

iconSuccess

Project specific build success image at path relative to root project.

val iconSuccess: RegularFileProperty!

Functions

config

Hook for customizing notifications being displayed.

fun config(config: NotifierFacade.() -> Notifier): Unit

custom

fun custom(notifier: (title: String, text: String, level: LogLevel, onClick: (Notify) -> Unit) -> Unit): Notifier

dorkbox

fun dorkbox(configurer: Notify.() -> Unit = {}): Notifier

error

fun error(title: String, text: String): Unit

info

fun info(title: String, text: String): Unit

lifecycle

fun lifecycle(title: String, text: String): Unit

log

fun log(title: String): Unit
fun log(title: String, message: String): Unit
fun log(title: String, message: String, level: LogLevel): Unit

notify

fun notify(title: String): Unit
fun notify(title: String, text: String, level: LogLevel, onClick: (Notify) -> Unit = {}): Unit
fun notify(title: String, text: String): Unit

warn

fun warn(title: String, text: String): Unit

Companion Object Functions

of

Get project specific notifier (config can vary)

fun of(common: CommonExtension): NotifierFacade