I am creating a shared library that will be used in many projects in my company. Those projects are based on different Spring-Boot versions. The same version of library won't work (as far as I know) for example on Spring Boot 3.0.0 and 2.7.10 projects. I don't know what are best practises to do versioning in such case. I believe I shouldn't make library version 1.0.0 for SB 2.7 and library version 2.0.0 for SB 3.0.0, because in some time I might need to increment the major version in the library due to breaking changes and I won't be able to increment 1.X.Y to 2.0.0.
What is the solution to this problem? Should I append something to the artifact name for each version?