Browse Source

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
pull/636/head
Sam Brannen 11 years ago
parent
commit
07629a3c7c
  1. 9
      build.gradle

9
build.gradle

@ -233,14 +233,7 @@ configure(subprojects - project(":spring-build-src")) { subproject -> @@ -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) {

Loading…
Cancel
Save