I’ve tried to use support for @Categories (GRADLE-2111) in JUnit/Spock tests and it works fine in a default test task, but with the same configuration it doesn’t in my integrationTest task - all tests are run.
The docs are correct. The ‘println’ is supposed to be run in the execution phase; your code (‘include’, etc.) needs to be run in the configuration phase. Configuration and execution phase has a bit more on this.