There's just a slight difference in the syntax between what you're trying to
do (add a new Task named jar) and configuring an existing one. If you want
to configure the one provided by default by the Java plugin, here's the
syntax:
jar {
                baseName = 'core'
                dependsOn classes
                from sourceSets.main.classes
                exclude('net/intellidata/core/**/*Impl*')
}
 

Hope that helps!
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/How-to-exclude-some-classes-from-jar-tp3315811p3316075.html
Sent from the gradle-user mailing list archive at Nabble.com.

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

    http://xircles.codehaus.org/manage_email


Reply via email to