Problems with gradle project import for gradle projects using buildSrc
已回答
Hello,
on idea ultimate 2021.3 I can't import gradle projects that use buildSrc for sharing configuration. I was able to reproduce the problem on a stripped down example that you find at https://github.com/aanno/Servlet-4.0-Sampler/tree/report/gradle-buildsrc-idea and reported the problem as https://youtrack.jetbrains.com/issue/CWM-4912
I wonder if somebody else steped upon this problem?!?
Kind regards,
Thomas
请先登录再写评论。
Thanks for the sample. But the project is imported fine for me:
Based on the error
it could be an issue with some of the plugin used, like here.
Also, looking at the final status message:
I see that the Gradle Reload action completes successfully. Can you clarify what exact issue do you have with the project?
Btw why did you create the project in Remote Development project? Is it somehow specific to Remote Development or Code With Me? Thanks.
Yes, you are right. I've tried the example with another machine in another network and it works. However, the example does not work on the original machine (i.e. the import never ends/stops and the project never became accessible from within idea).
For me, it looks like the problem is related to proxy configuration. The problematic machine has to access internet by an http/https proxy. I configured that proxy with a `gradle.properties` inside the project similar to:
However, this proxy configuration is not used inside the `buildSrc` folder!
Thanks for the information. Indeed Gradle should find properties for the buildSrc directory only if they are placed inside buildSrc.