Update gradle to 2.2.1
Merge pull request #716 from lholden/update_gradle_to_2.2.1

Update gradle to 2.2.1 to work with Java 8