-
Notifications
You must be signed in to change notification settings - Fork 275
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
Support For implementation
Dependency Configuration
#242
Comments
In our tests, I verified that changing I did notice that things like |
Thanks for the answer, @zpencer. Could you please link the test so I can compare it to my config and find out why does it work for you, but not for me? |
@zpencer Sounds like we need something like "implementationProtobuf" and "apiProtobuf". |
@dmdashenkov try changing https://github.com/google/protobuf-gradle-plugin/blob/master/testProjectDependent/build.gradle#L16 to say In my earlier statement I was actually modifying the wrong file, my mistake. When I change it to |
In my case, I use the Interestingly enough, using The visible difference when building my project in those two configurations is in the I'll proceed with my investigation and inform you if I find some more info. |
This is a tough issue for us because it means that we have to either use I am using gradle 4.10.2. |
@zhangkun83 perhaps you can take a look at exposing the new style dependency configuration. |
Hi, guys. Are there any updates on this issue? |
If someone can provide a little direction on how to implement this I am willing to take a look at doing it. |
Seems like this is what is happening:
It is really up to you, but I'd expect the plugin to use |
@jd3nn1s, please let me know if you have any questions on my comment. |
@jd3nn1s, is there any progress? If you didn't have a chance to try yet, maybe I could give it a try sometime soon. |
@dmdashenkov
|
Sorry for a long silence. I do not seem to receive some notifications from open source repos. @voidzcy, yes, this should work. Moreover, according to the build warnings in Gradle
Tip: run a build with You are right, |
I recently found this issue is actually related to #363. I am able to reproduce what @dmdashenkov says exactly:
Not only for an external artifact ( Before, we had some miscommunication and did not completely understand/reproduce the issue (Mostly distracted by the title of this issue, which did not emphasize this was mainly caused by |
@voidzcy, sorry for the lack of this information. I failed to mention this. I guess I was distracted by the fact that |
I've migrated to |
As the
README
says, it's required to usecompile
dependency configuration in order to link.proto
dependencies. However, the configuration is deprecated now.Could we expect support for the
implementation
andapi
(from thejava-library
plugin) for those purposes?The text was updated successfully, but these errors were encountered: