Skip to content

Commit a52ff46

Browse files
committed
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 (cherry picked from commit 07629a3)
1 parent eb3509a commit a52ff46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
156156
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
157157
}
158158

159-
task sourcesJar(type: Jar, dependsOn:classes) {
160-
classifier = "sources"
161-
from sourceSets.main.allJava.srcDirs
162-
include "**/*.java", "**/*.aj"
159+
task sourcesJar(type: Jar, dependsOn: classes) {
160+
classifier = 'sources'
161+
from sourceSets.main.allSource
162+
// don't include or exclude anything explicitly by default. See SPR-12085.
163163
}
164164

165165
task javadocJar(type: Jar) {

0 commit comments

Comments
 (0)