On 8/07/10 8:11 AM, John Murph wrote:
I have a task called 'sdk' that is a Zip type task. This task should only do work when explicitly requested, not whenever assemble is executed. Right now I did this:

assemble.dependsOn = [{ project.tasks.withType(AbstractArchiveTask.class).all - sdk}]

Obviously this is not nice.  What's a better way?

You could do

assemble.dependsOn = [configurations.default.buildArtifacts]

This will just build the runtime artifacts. This would be a much better default than building all the archives.


--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz

Reply via email to