registerWorkspaceTask

Available in a dev version: 0․11․0-grpc-186

How to configure

fun <T : BufExecTask> registerWorkspaceTask(kClass: KClass<T>, name: String, configure: Action<T> = Action {}): ProtoTasks<T>(source)
inline fun <T : BufExecTask> registerWorkspaceTask(name: String, configure: Action<T> = Action {}): ProtoTasks<T>(source)

Registers a custom Buf task that operates on the generated workspace.

Name conventions: lint input for name will result in tasks named 'bufLintMain' and 'bufLintTest' for Kotlin/JVM projects and 'bufLintCommonMain', 'bufLintCommonTest', 'bufLintNativeMain', etc. for Kotlin/Multiplatform projects.