-
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
Task generateProto is not executed before task compileJava during build in version 0.9.3 #729
Comments
Does it still fail if you remove the Eclipse sourceSets configuration? I'm suspicious of it. This is a very basic use-case, and it hasn't been failing elsewhere. |
No, it doesn't fail without the Eclipse sourceSets configuration. |
I figured it out. There is no That means the sourceSets is just being applied to project, so it is the same as:
And that is clearly broken, as it adds a folder generated by the task without the task. Modifying sourceSets shouldn't be necessary any more for Eclipse. Just applying the eclipse plugin should be enough. So I'd recommend just deleting that |
True! I just copied the first answer from StackOverflow that worked - it might be clearly broken but no error/warning is issued and it worked until ... it stopped working 🤷♂️
Perhaps it should. But it's not. I'm using now |
How was it breaking? |
build/generated/source/proto/main/java is not added as source folder to .classpath, that is, But this behavior, right or wrong, has nothing to do with this issue, which can be closed. |
Hmm... That should have been improved by #601 (add directories to sourceSet), and then fully fixed with #590 (eagerly make the output directories) . I wonder if they had a recent behavior change. We do have a test that is passing, so we may need to try different versions. Feel free to open another issue for that eclipse issue. |
gradle version: 7.4.2
src/main/java/Foo.java
src/main/proto/example.proto
build.gradle
Output of
gradle build
:Partial output of
gradle build --info
:Partial output of
gradle build --info
when using com.google.protobuf version 0.8.3:The text was updated successfully, but these errors were encountered: