Remove the spring-core dependency from the annotation processor. (cherry-picked from 4cb7d86aec) Fixes gh-7882
4cb7d86aec