Jakub Trojanek wrote:
>
> I would like to have a possibility to define 'includes' at sourceSet
> level, so it would look something like :
>
> task apiJar(type:Jar) {
> from sourceSets.main.classes {
> include '**/api/**/*.class'
> }
> from sourceSets.main.resources {
> include '**/*'
> }
> classifier='api'
> }
>
> Any ideas?
>
I'd expect this to work as-is. See:
http://gradle.org/latest/docs/userguide/userguide_single.html#nestedCopySpecs
--
Peter Niederwieser
Developer, Gradle
http://www.gradle.org
Trainer & Consultant, Gradle Inc.
http://www.gradle.biz
Creator, Spock Framework
http://spockframework.org
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Custom-artifacts-resources-packaging-tp3395820p3395919.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