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