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

Add a sourceSet for generated code #10

Open
andrewkroh opened this issue Oct 16, 2014 · 0 comments
Open

Add a sourceSet for generated code #10

andrewkroh opened this issue Oct 16, 2014 · 0 comments
Milestone

Comments

@andrewkroh
Copy link
Owner

The plugin should add a new sourceSet for the generated code so that it is automatically incorporated into your IDE. I will also address that in the next release.

As a workaround you can add a sourceSet yourself. This will get the source into your IDE, but it does not wire up a dependency on the compileProto task.

sourceSets {
  generated {
    java.srcDirs += "$buildDir/$protobuf.outputJava"
  }
}
@andrewkroh andrewkroh added this to the 0.5.0 milestone Oct 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant