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
Multiple buildSrc in different composite builds breaks the IntelliJ IDEA import #8920
Comments
Oh great - I've found a workaroud: |
@GFriedrich do you know if this used to work with an earlier version of Gradle or IDEA? |
@big-guy: No, otherwise I would have created a regression issue. |
I could not reproduce it on Windows but a colleague had the same problem on Mac. I'm just wondering if the bug might be platform dependent. However, it would seem suspect to me if this behavior depends on the operating system. Anyway, did you encounter the issue on Windows or on another operating system? |
I've experienced the issue on Windows and Linux. |
There was some leftover of a buildSrc on the Mac. After deleting it, the problem did not occur anymore. Interestingly, there are still multiple other buildSrc directories within the composite build which do not cause the problem. |
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
… unique root project name for buildSrc in gradle composite builds gradle/gradle#8920 [skip ci]
thanks . I don't know why, but it works. |
This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution. |
Just checked and at least with latest IntelliJ IDEA 2020.2.3 and Gradle 6.5.1 (or higher) this is not happening anylonger. |
When having a root project with two included composite build projects and each of these projects uses a "buildSrc" folder, the import of the main project via IntelliJ IDEA fails.
Expected Behavior
The import/sync should run without an issue.
Current Behavior
The import/sync of the Gradle project fails.
Steps to Reproduce
Have a project A including two other composite build projects B and C.
B and C should have a buildSrc folder.
Importing/running sync in IntelliJ IDEA fails due to:
As far as I can see, during the import/sync the IDEA plugin of Gradle gets included to all builds to gather the Gradle model for projects. But obviously the plugin can't handle multiple buildSrc folders.
Your Environment
Gradle 5.3.1
The text was updated successfully, but these errors were encountered: