Fix incremental build for Jenkins with gradle 1.8