Add spec task as a dependency for build task.