Skip to content

Commit 042cfee

Browse files
committed
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
1 parent 9ea646e commit 042cfee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.gradle

+1-2
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ configure(subprojects - project(":spring-build-src")) { subproject ->
229229

230230
task sourcesJar(type: Jar, dependsOn: classes) {
231231
classifier = 'sources'
232-
from sourceSets.main.allJava.srcDirs, sourceSets.main.resources.srcDirs
233-
// sourceSets.main.allGroovy.srcDirs can only be applied to groovy projects
232+
from sourceSets.main.allSource
234233
include '**/*.java'
235234
include '**/*.groovy'
236235
include '**/*.aj'

0 commit comments

Comments
 (0)