Comment From: wilkinsona

This seems to happen naturally for most projects but not all. For example, spring-boot-actuator-autoconfigure runs test before checkstyleTest. This may be because of its use of REST Docs which means that the task ordering has been customized to make the Asciidoctor tasks depend on the test task.