It should be `--rerun-tasks`, the original one miss a 's' at the end. See https://docs.gradle.org/current/userguide/command_line_interface.html