registerBufExecTask

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

How to configure

inline fun <T : BufExecTask> Project.registerBufExecTask(name: String, workingDir: Provider<File>, properties: ProtoTask.Properties, noinline configuration: T.() -> Unit): TaskProvider<T>(source)

Registers a BufExecTask of type T.

Use it to create custom buf tasks.

These tasks are NOT automatically configured to work with the generated BUF_GEN_YAML and BUF_YAML files and the corresponding workspace.

For that use BufTasksExtension.registerWorkspaceTask.