Fix for gradle 1.8