Move :auto-clean to jar task.

Fixes #1642.