-
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
Plugin not compiling java code after migration from 0.8.19 -> 0.9.0 #747
Comments
I have the same issue with a plain java project. 0.8.19 generates code, but 0.9.4 doesn't. I haven't spotted the difference yet. 0.8.19 throws a lot of deprecation warnings in gradle 8.x and gradle fails to build sourcesJar, so I was trying to update the plugin. |
You say you tried 0.9.0. Did you not try 0.9.4? It was released 9 months ago. It works fine for me if I remove this:
That modifies the sourceSet without any dependency information, so that probably only happened to work before. The plugin adds the generated sources to the Java sourceset, so that shouldn't have been needed even with 0.8.x. |
In my case, the gradle file looks like this (excerpt from a multiproject build):
With 0.9.4 and gradle 8.6 it generates nothing, the build folders stay empty, even the extracted-include-protos dir is empty, and the java compile fails because no generated sources. Only build/resources/main/proto is filled with the copied proto files. And the tasks are "UP-TO-DATE" or have "NO-SOURCE"
|
@dl6lr, remove the |
@ejona86 Thanks for your suggestion. I just tested it with no different results: No proto files are processed, no java files are generated. I changed the script to:
The eclipse plugin is already applied. |
@dl6lr, seems your issue is different. Please open a separate issue (you can link to your initial comment here). |
@ejona86 thanks for your time. My issue seems to be caused by a (complex) multi project setup. I thought it is related. |
I have a similar problem: When I remove the (using |
Hello, I have an android project I'm trying to migrate. I updated the version of protobuf-gradle-plugin from 0.8.19 to 0.9.0 and now nothing is being generated by the plugin. I've tried several things but couldn't figure out what I'm doing wrong. I can confirm everything works with 0.8.19 but not with 0.9.0.
I'm not seeing any errors, just no
generated
folder in the build output and a jar file that only contains the input proto file.Here's my build.gradle file for the project:
This is my folder structure:
The text was updated successfully, but these errors were encountered: