Only target gradle projects, and use final task.