This is not possible with the Spring Dependency Management plugin. See the following issue for details: https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/342