Import issue with Eclipse
ra992 opened this issue · 5 comments
Hello @ra992,
I will take a look during the weekend, but unfortunately, how the project is loaded depends on the Eclipse Gradle Plugin. I can't promise anything.
If importing the project in Eclipse as a Gradle project does not yeild the expected result, I am not sure I can help.
What prevents you from using IntellJ IDEA community edition?
Cheers,
Iuliana
Hi Luliana, Only thing prevent me to use intellij is "no experience of using it" :)
Hello @ra992 ,
I am installing Spring Tool now, but my recommendation would be try IntelliJ IDEA. In the book, I do mention a few key shortcuts and how to run things. Also, it has better integration with Gradle. And Maven, and Spring.
You might end up liking it. That's what happened to me more than 10 years ago.
Cheers,
Iuliana Cosmina
Hello @ra992 ,
I've installed Spring Tool Suite 4 downloaded from here: https://spring.io/tools
Version: 4.8.1.RELEASE
Build Id: 202010230733
I was able to import the project and the sources are identified correctly. However, the project is not usable in Eclipse, because it seems Eclipse has the same problem with Gradle that it had with Maven the last time I worked with it. If it cannot recognize a Gradle plugin it does not support its functionality.
The pivotal-certified-pro-spring-dev-exam-02
uses Java modules for its projects where possible. Support for compiling and running the project using Java Modules is enabled by a Gradle plugin Eclipse does not recognize. Thus, support for modules is disabled, and the project is ... unusable.
Giving up Java modules requires deleting all module-info.java
file and removing all afterEvaluate
tasks. You can give it a try if you really want to use Eclipse. You are welcome to submit a pull request if you make it happen.
I might give up using Java modules in the future too, because most people in the industry seem to avoid them like the plague.
Unfortunately, since Eclipse being a rigid bastard is not an issue of this project, I will close this. Thanks for the feedback!
Cheers,
Iuliana Cosmina
Hi Luliana,
Thanks for prompt reply. I will install the intellij, as eclipse have issue. Thanks a lot for all explanation :)