Include ALL source artifacts in published sources jars

This commit updates the Gradle build to ensure that *all* source
artifacts are including in published 'sources' jars.

To achieve this, we are now assembling 'sources' jars from
'sourceSets.main.allSource' and not explicitly including or excluding
anything by default.

Issue: SPR-12085
This commit is contained in:
Sam Brannen 2014-08-26 16:38:57 +02:00
parent 8f715a8547
commit 07629a3c7c
1 changed files with 1 additions and 8 deletions

View File

@ -233,14 +233,7 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
include '**/*.java'
include '**/*.groovy'
include '**/*.aj'
include 'META-INF/spring.factories'
include 'META-INF/services/*'
include '**/*.properties'
include '**/*.xml'
include '**/*.types'
// don't include or exclude anything explicitly by default. See SPR-12085.
}
task javadocJar(type: Jar) {