From a52ff46feae98e9d85f6c951487cbd66c7c6c365 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Tue, 26 Aug 2014 16:38:57 +0200 Subject: [PATCH] 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 07629a3c7cc9ad677d31d383015410ad3395addc) --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 3605d257392..0979806c9cb 100644 --- a/build.gradle +++ b/build.gradle @@ -156,10 +156,10 @@ configure(subprojects - project(":spring-build-src")) { subproject -> logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message } - task sourcesJar(type: Jar, dependsOn:classes) { - classifier = "sources" - from sourceSets.main.allJava.srcDirs - include "**/*.java", "**/*.aj" + task sourcesJar(type: Jar, dependsOn: classes) { + classifier = 'sources' + from sourceSets.main.allSource + // don't include or exclude anything explicitly by default. See SPR-12085. } task javadocJar(type: Jar) {