fix missing "then"
upgrade to gradle 1.9