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 }
We use
buf generatefor generating code from protobufs. I've been integrating this step in build scripts with:It would be great if the
bufplugin did this automatically, perhaps with a config flag? e.g.buf { generateInBuild = true }