INT-2907: Upgrade to Gradle 1.4

JIRA: https://jira.springsource.org/browse/INT-2907
INT-2913 Fix Looping Mail Tests

Causes excessive CPU utilization and OOM Errors with
Gradle 1.4 (and 1.2 on some platforms).

Stop adapters when tests complete.
Merge pull request #725 from artembilan/INT-2907