How to prevent dependency resolution during configuration

My post here discusses unzipping via the Copy task and how it forces unzipping and dependency resolution in the configuration phase. See the alternative solution (unzip2) which uses Project.copy {...} in a doLast{...} closure