tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Clean architecture project could be better structured on packages, to show clearly the layers

Open bpstelios10 opened this issue 1 year ago • 1 comments

Article and Module Links Clean Architecture with Spring Boot

Describe the Issue The article does a very good job to present classes by layers. This could be done on the project at package level too. This is for 3 reasons:

  • Some of the classes are not mentioned in the article, so people can reference the project as documentation.
  • It is not a good java practice to put all in one package
  • MOST IMPORTANT imo is that people can clearly see that entities package doesnt depend on anything, usecases package only has dependencies to entities package etc. This makes even more clear the rule 'a higher level must never depend on a lower one'

Expected Behavior Similar

bpstelios10 avatar Feb 25 '24 14:02 bpstelios10

I have the solution ready too, if i could get granted access (for creating feature branch and PR).

bpstelios10 avatar Feb 25 '24 14:02 bpstelios10

Thanks for the feedback here - that's always super helpful. We do naturally try to keep everything updated, but, as you might imagine, in some cases, we also do have to prioritize some updates over others. This looks to be one that won't have high priority. We now have a note internally on it - closing this issue here. Thanks, Team

collaboratewithakash avatar Feb 26 '25 11:02 collaboratewithakash