# How do I exclude main jar file from applicationDistribution

**URL:** <https://discuss.gradle.org/t/how-do-i-exclude-main-jar-file-from-applicationdistribution/2876>\
**Category:** Old Forum Archive\
**Created:** [June 24, 2014, 5:50pm UTC](https://discuss.gradle.org/t/how-do-i-exclude-main-jar-file-from-applicationdistribution/2876 "2014-06-24T17:50:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Huffman1](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@Brian\_Huffman1](https://discuss.gradle.org/u/Brian_Huffman1)\
**Post date:** [June 24, 2014, 5:50pm UTC](https://discuss.gradle.org/t/how-do-i-exclude-main-jar-file-from-applicationdistribution/2876/1 "2014-06-24T17:50:00Z")

</div>

I’m using the application plugin, but I want exclude the main jar file.

I’m making changes to that file and then manually copying it back in using a copyspec (applicationDistribution.with) but I’m ending up with duplicates.

How can I remove the version that the application plugin includes?

Thanks, Brian
