update build.gradle and Spring configurations