Gradle cleanup

I have updated plugin and dependencies versions and done some cleanup in gradle config.