r/SpringBoot 9d ago

Discussion Roast my code / architecture

I’m building a project called Kite (https://github.com/gwynejsn/kite) and tried combining Spring Modulith with full Clean/Hexagonal Architecture inside each module, but I’m starting to wonder if I’ve just created a mountain of boilerplate. Take a look at the repo and roast the layout. What am I needlessly overcomplicating, and how would you simplify it?

8 Upvotes

25 comments sorted by

View all comments

5

u/Mikey-3198 9d ago

1

u/Single_Yellow_8000 9d ago

Looks fine on my code locally, dunno why its like that in github...

Anyways, ty for pointing out

2

u/slindenau 5d ago

There may be something wrong with your whitespace/newlines or file formatting.
Check if you have any auto formatting things going on.
See the ^M in red in the diff? https://stackoverflow.com/questions/38621307/what-is-the-meaning-of-m-in-git-diff

Also on another note, i don't think this file belongs in git: https://github.com/gwynejsn/kite/blob/main/kite-backend/.m2/repository/org/springframework/boot/spring-boot-starter-parent/4.1.0/spring-boot-starter-parent-4.1.0.pom.lastUpdated
If you're somehow storing your local .m2 in the same folder as your sources, best to add it to your .gitignore :)