I have developed a Java library using Spring Boot version 2.7.10, and my library depends on javax.servlet.http.HttpServletRequest
. With later versions of Spring Boot transitioning to Jakarta EE9, which uses jakarta.servlet.http.HttpServletRequest
, I want to ensure that my library remains compatible with both the current Spring Boot 2.7.10 and newer versions that use Jakarta EE.
What approach should I take to handle this transition? Should I maintain separate codebases for the different versions, or is there a more efficient way to make my library compatible with both versions of Spring Boot?
Any guidance on best practices for managing this compatibility issue would be greatly appreciated.
I have googled about this issue, but found no good solution.