Skip to content

Commit 6f7b17a

Browse files
perturnorth
andauthored
Set sourceJar.from=allSource for modules/spock (#2281)
Fixes issue #2280 By default, sourceJar.from = allJava (see gradle/publishing.gradle) But Spock module is in Groovy => sourceJar.from should be allGroovy/allSource Co-authored-by: Richard North <[email protected]>
1 parent 573a622 commit 6f7b17a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/spock/build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ dependencies {
1616
testRuntime 'org.postgresql:postgresql:42.2.10'
1717
testRuntime 'mysql:mysql-connector-java:8.0.19'
1818
}
19+
20+
sourceJar {
21+
/* allJava is default (see gradle/publishing.gradle:sourceJar)
22+
allSource contains both .java and .groovy files */
23+
from sourceSets.main.allSource
24+
}

0 commit comments

Comments
 (0)