How do I exclude main jar file from applicationDistribution

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