Merge pull request #260 from qiangdavidliu/master

Removing race condition in shuffleInstances due to premature .clear() of
[Gradle Release Plugin] - pre tag commit:  '1.1.145'.
[Gradle Release Plugin] - new version commit:  '1.1.146-SNAPSHOT'.