I have written a library to provide a Java API for a Rest service with all the fun stuff like RestTemplate, RestTemplateRequestCustomizer, ResponseErrorHandler, etc. I now want to distribute the library so that it can be used in any Java application (not Spring). Is it possible to use it in a non-Spring application, or is the client code then forced to use Spring? And what are the best practices for packaging/distribution?
1