Open murdos opened 2 weeks ago
I agree, reducing the surface of dependencies has some sweet advantages.
As you mention, the only feature I'm using from Spring is the annotations resolver (I guess located in Spring core). Especially for their custom non standard alias mechanism. And probably for some inheritance resolving too.
Ideally, getting rid of this part would be nice too, but it brings other problems. I have no idea yet if the spring annotation resolver internals are complex or not and if it worth to be re-implemented.
Other than that, I see no issues getting rid of the other dependencies.
Excepted for the
MergedAnnotations
feature, most dependencies could probably be easily removed by replacing classes and enum import by String, e.g. inOperationType
:rather than:
This would lower required dependencies, and limit security surface.
And these dependencies should probably be just test dependencies.