-
Notifications
You must be signed in to change notification settings - Fork 274
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
Please document how to generate Python sources #230
Comments
The syntax from #13 is outdated. With the latest version of the plugin, you don't specify output in the sourceSets, but in the protobuf {
generateProtoTasks {
// all() returns the collection of all protoc tasks
all().each { task ->
task.builtins {
remove java
python { }
}
}
}
} |
Thanks. Unless you tell me it's a bad idea, I'd like to add that info to this project's README and submit a PR: would that be ok? |
It is already documented. Try searching for "python" in the current README. Feel free to make a PR if you find anything that can be improved. |
ah, yes, completely missed it, sorry! |
Reading #13, it states that setting this:
should generate python sources too; but I get an error:
Be that as it may - this is, to say the least, non-intuitive.
How difficult would it be to have something like:
or something to that effect?
I am perfectly capable of creating a bash script to do both, but it would be nice to just run
./gradlew install
and have both Java/Python generated.Thanks!
The text was updated successfully, but these errors were encountered: