ensureInit

fun ensureInit(direct: Boolean = false)

Ensures, and if required, initialises this task calling init.

Also attempts to attach this task to the dependency unless direct is true (default false).