update gradle build file

upgrade dependencies in gradle build file (to match the ones in pom.xml) and update version of gradle wrapper