-
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
Not compatible with Gradle 7.0 #493
Comments
It happens in the |
Thanks for reply, let me add more contexts. I add the generated dirs to
If I remove this workaround, it works happy with both gradle 6.8 and 7.0 (but IDEA can't see the generated codes) Any suggestions? |
I might get some sense for what's happening there, after seeing you are actually compiling Scala with the generated code. As far as I know the Explicitly adding generated code to the source sets is really unnecessary, IDE should be able to pick up generated code. But that may not always work perfectly well, and possibly there are many other things come to play (e.g., IDEA cache, interacting with other plugins, etc). I've seen a couple of cases that sometimes the IDE works well while sometimes not. I am suspecting it has something to do with working with the |
That's what I expected behaviors, but unfortunately, I'm struggling a few days but there are zero times IDE works as expected.
I afraid I can't agree with that. I added the |
I tried with gRPC-Java examples by adding some random Scala and antlr code. But it turns out everything just works fine. You can find my patch at https://github.com/voidzcy/grpc-java/pull/3/files.
The same thing should have been done by the plugin and I've verified they are called on the IdealModule correctly. It might be possible that the IdealModule gets overwritten by some other plugins and configurations. I've seen people manually add configurations to explicitly set IdeaModule before, and it seems to work pretty well. |
I think I find what I am lost. The point is enable
It's my mistake, because even without Really thanks for your time to help me dig it. |
protobuf_plugin_version=0.8.16
Build passed with gradle 6.8.3 but failed with gradle 7.0
Run
./gradlew clean build --warning-mode all
with gradle 6.8.3.The text was updated successfully, but these errors were encountered: