intTest.doLast {} runs after the test runs.  Use intTest { } to reconfigure the task.