The generated gradle.properties file and init script are not cached, so need to be generated even when restoring from cache.