In your jar task you can do exclude: '...'

Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp

Software Engineer
Open Source Advocate

PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu



On Thu, Sep 30, 2010 at 10:06, Eric Nelson <[email protected]> wrote:
> Hi all.  I'm using Gradle to build a simple Java application.  My application 
> is dependent on Morphia, which is a declared dependency in my build script.  
> My project builds fine, but the problem is, that the resulting JAR file 
> contains not only my code, but also the code from Morphia.  In looking at the 
> Morphia JAR, it contains the Java source code in it.  So I guess that Gradle 
> is seeing that and including it in the built JAR.  But I don't want this 
> behavior, and wonder if anyone knows how to exclude that code from being 
> included.  I don't see any available Morphia Jars that don't contain the 
> source code, so some sort of exclusion in Gradle would be the only way.  Any 
> help is greatly appreciated.
>
> Eric Nelson
> Simplifile
> 801.373.0151 x1010
> [email protected]
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

    http://xircles.codehaus.org/manage_email


Reply via email to