Closed ch4mpy closed 2 years ago
Hi @ch4mpy! Thanks for looking into this. I agree that there's probably some room for improvement in that document.
Is Spring team is using only IntelliJ? Wouldn't pointing contributors to IntelliJ community edition be easier?
I do believe the entire team is currently using IntelliJ, so that would be a good adjustment to mention.
Also resources to configure IDEs with required code-formatting and import oredering rules would be of great help.
This is something that's been on the To Do list for some time, but hasn't made it to the top of the list. I think the main thing that needs addressed is a consistent way to configure imports. Code formatting is handled by ./gradlew format
, which would be good to mention as well.
Please see gh-11157. Since that issue was opened earlier, I'm going to close this as a duplicate. Feel free to add additional comments on that issue or to volunteer to take the issue and make a few updates to the doc based on your experience.
@sjohnr , yes, ./gradlew format
applies expected formatting but does not organize imports and IntelliJ community applies different formatting and import order than what is expeted from spring => each minor edit requires to manually organize imports and then run gradle format, which is quite time consuming (and cumbersome).
Having IntelliJ editor configuration files in Spring repos would be very handy (with the usage of Kotlin in projects, using other IDEs than Idea ones seams compromised)
This is what I am getting in Spring STS 4.17 Any ideas on how to fix all the reference issues?
If you want the project to build, use Intellij (community edition is free) .
Using STS for any other Maven / Gradle project, I can understand your frustration, but I couldn't figure a way to have Kotlin modules build correctly.
thanks @ch4mpy . The problem I have with Intellij is that I dont know how to link the various projects togethor so that I can develop in a cohesive manner. For example I am trying to develop an extension for Spring Authorization Server and it needs Spring Security to be there so that when I run my app it picks up the version I am developing as opposed to the version being dictacted by Spring Authorization Server.
I am already struggling, and the closest I have gotten is to publish jars locally from both projects and create a third project that uses them. This is not a nice development experience.
I know Eclispe, IntelliJ is a new learning curve that I don;t need ecspicially when there is a version of Eclipse developed by Spring that no Spring Developer uses. I have asked for help, as I am trying to help them with my extension, but so far tumbleweeds. Yes I appreciated it is the silly season and people are busy, but there needs to be a guide for how to develop the interdependencies so that we can make this a better prooduct,
Describe the bug Following CONTRIBUTING.adoc is not enough to get an IDE ready to run unit-tests and contribute.
I could not get porject build and unit-tests run from Spring Too Suite 4 for Eclipse.
It seems that Kotlin resources were added and that referenced Groovy plugin version does not evolve with Eclipse releases.
Is Spring team is using only IntelliJ? Wouldn't pointing contributors to IntelliJ community edition be easier?
Also resources to configure IDEs with required code-formatting and import oredering rules would be of great help.
To Reproduce
Here is what I did
Help -> Install New Software... -> Add...
and put there the URL retrieved from https://github.com/groovy/groovy-eclipse/wiki and matching the version found inHelp -> About Spring Tool Suite 4 -> click Eclipse.org icon -> Eclipse Platform
(installed just the "required" features)Here are some of the reported errors:
Expected behavior Project imported and build, unit-tests ready to run from IDE.
Code format and import order rules configured correctly.