On 04/09/2011, at 8:48 AM, Mike Mills wrote:

> Issues:
> There seems to be no way to remove the jar artifact configuration
> created by the application plugin. The api only seems to allow you to
> add dependencies, and the application plugin has no switch to not
> create the jar configuration.

You could remove the jar artifact with:

configurations.archives.with { archives ->
        def jarArtifact = archives.artifacts.find { it.class.simpleName == 
"ArchivePublishArtifact" && it.archiveTask == jar }
        archives.removeArtifact(jarArtifact)
}

Note that removeArtifact was deprecated in m4, so from m4 on you should use…

configurations.archives.artifacts.with { archives ->
        def jarArtifact = find { it.class.simpleName == 
"ArchivePublishArtifact" && it.archiveTask == jar }
        remove(jarArtifact)
}

-- 
Luke Daley
Principal Engineer, Gradleware 
http://gradleware.com


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to