-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make build depend on bufGenerate
#86
Comments
Just thinking out loud for a moment: the way to do this is probably via implicit dependencies on task output. It looks like that's how the |
The first step - using custom task classes - is complete: #94. |
Another problem is that there's no great way to know from the Support for this might require a proper config DSL that generates a YAML itself, which I was hoping to avoid. |
Why not add it to the
|
I don't think that's the right path forward since it only addresses half the issue. I think a more elegant solution may be to introduce a function on the extension like |
FWIW the protobuf plugin configures its extension for all SourceSets, although it switches paths based on whether the project is an Android project. Generally, I think making all |
One thing I noticed recently that after adding
to my build file, buf is invoked on any compilation-related command and it will contact the BSR - even if no input files changed. I only noticed when I ran into rate limiting issues. Now I don't want to waste anyones resources but I also feel like this should be possible to automate so one cannot forget to compile As someone who practices TDD a lot, having |
We use
buf generate
for generating code from protobufs. I've been integrating this step in build scripts with:It would be great if the
buf
plugin did this automatically, perhaps with a config flag? e.g.buf { generateInBuild = true }
The text was updated successfully, but these errors were encountered: