Closed Ziamor closed 6 years ago
Yeah, I've had it happen too (but different use-case) - I'd recommend something like a project(":common")
, if you feel it doesn't fit in :components
.
You could also consider renaming the components
module to something more generic, like model
. @junkdog's suggestion is what I do.
I decided to use Fluid Entities for my project but I've come across a problem. Some of my components use some classes I wrote (e.g Gradient class) which I originally had defined inside core. When I added Fluid Entities, the components that relied on my classes do not have access to them as Components is built first before Core. If I try to add a dependency to Core for Components I obviously get a circular dependency. I temporally solved the problem by moving the classes I defined into Components but from an organizational stand point it doesn't feel like they belong there. What is the proper way of doing this? Or am I stuck having them inside Components?
Here's how my projects build script looks like for components and core
I should also point out I'm very much new to gradle so my build scripts could be completely wrong.