Skip to content

Make build depend on bufGenerate #86

@remoun

Description

@remoun

We use buf generate for generating code from protobufs. I've been integrating this step in build scripts with:

// Add a task dependency for compilation
tasks.named("compileJava").configure { dependsOn("bufGenerate") }
tasks.named("compileKotlin").configure { dependsOn("bufGenerate") }

It would be great if the buf plugin did this automatically, perhaps with a config flag? e.g. buf { generateInBuild = true }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions