Skip to content

Commit 3b64db1

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 21f0057 commit 3b64db1

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
@@ -144,10 +144,10 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
144144
logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message
145145
}
146146

147-
task sourcesJar(type: Jar, dependsOn:classes) {
148-
classifier = "sources"
149-
from sourceSets.main.allJava.srcDirs
150-
include "**/*.java", "**/*.aj"
147+
task sourcesJar(type: Jar, dependsOn: classes) {
148+
classifier = 'sources'
149+
from sourceSets.main.allSource
150+
// don't include or exclude anything explicitly by default. See SPR-12085.
151151
}
152152

153153
task javadocJar(type: Jar) {

0 commit comments

Comments
 (0)