XD-2518 Upgrade to Gradle 2.2

Jira: https://jira.spring.io/browse/XD-2518
In Gradle (I guess 2.0+ removed the deprecation) you must assign stuff to *ext* for it to be visible. See this SO post: http://stackoverflow.com/questions/18715137/extract-common-methods-from-gradle-build-script