Skip to content
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

Don't rely on protoc executable #23

Closed
copumpkin opened this issue Aug 8, 2014 · 4 comments
Closed

Don't rely on protoc executable #23

copumpkin opened this issue Aug 8, 2014 · 4 comments

Comments

@copumpkin
Copy link

It'd be nice for these projects to be as self-contained as possible, and relying on an environment protoc seems unfortunate when we're already explicitly depending on the protocol buffers maven package. I don't know if there's a clean way to generate source from a library, but a silent dependency makes me sad.

@gseitz
Copy link
Member

gseitz commented Aug 13, 2014

Indeed, it's not ideal, far from it. Unfortunately, as far as I'm aware there's no Java API to generate the Java source. Maybe this protoc-jar project could be used for this purpose.

@copumpkin
Copy link
Author

That seems perfect!

@gseitz
Copy link
Member

gseitz commented Mar 12, 2015

@copumpkin: In case you're still using sbt-protobuf, I just published 0.4.0 with a new task runProtoc: TaskKey[Seq[String] => Int] which you can set to args => com.github.os72.protocjar.Protoc.runProtoc(args.toArray) to invoke the protobuf compiler coming from a downloaded dependent artifact (granted that the build has a dependency on the correct protoc-jar version).

@gseitz
Copy link
Member

gseitz commented Mar 12, 2015

Fixed by 779c6ee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants