My Spring Boot application's spring boot parent version is 1.5. There is a custom dependency whose spring boot version is 2.0. I want to force this dependency to use spring boot 1.5 in main Spring Boot application.
Given that: Dependency's version cannot be downgraded as it is being used by other apps and cannot upgrade the spring boot main app to 2.0 from 1.5. Dependency works well for both SB 1.5 and 2.0 well. Exclusion tags were also added to exclude springboot 1.5. but it was also not successful.
Please let me know how to force the dependency to use 1.5 at run time ?