Skip to content

Commit

Permalink
Set sourceJar.from=allSource for modules/spock (#2281)
Browse files Browse the repository at this point in the history
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 <rich.north@gmail.com>
  • Loading branch information
pertu and rnorth committed Feb 16, 2020
1 parent 573a622 commit 6f7b17a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/spock/build.gradle
Expand Up @@ -16,3 +16,9 @@ dependencies {
testRuntime 'org.postgresql:postgresql:42.2.10'
testRuntime 'mysql:mysql-connector-java:8.0.19'
}

sourceJar {
/* allJava is default (see gradle/publishing.gradle:sourceJar)
allSource contains both .java and .groovy files */
from sourceSets.main.allSource
}

0 comments on commit 6f7b17a

Please sign in to comment.