From 042cfeed5cb86bc568816d90e752ba01850e6885 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 15 Aug 2014 17:27:19 +0200 Subject: [PATCH] Include Groovy source code in published sources jars In our Gradle build script, we are now assembling 'sources' jars from 'sourceSets.main.allSource' in order to include Java, Groovy, and AspectJ source code as well all other appropriate classpath resources. Issue: SPR-12086 --- build.gradle | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 3383c6a4e5..b434be4908 100644 --- a/build.gradle +++ b/build.gradle @@ -229,8 +229,7 @@ configure(subprojects - project(":spring-build-src")) { subproject -> task sourcesJar(type: Jar, dependsOn: classes) { classifier = 'sources' - from sourceSets.main.allJava.srcDirs, sourceSets.main.resources.srcDirs - // sourceSets.main.allGroovy.srcDirs can only be applied to groovy projects + from sourceSets.main.allSource include '**/*.java' include '**/*.groovy' include '**/*.aj'