Skip to content

Commit

Permalink
Set sourceJar.from=allSource for modules/spock (testcontainers#2281)
Browse files Browse the repository at this point in the history
Fixes issue testcontainers#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
2 people authored and artjom.kalita committed Feb 28, 2020
1 parent a9b46f6 commit cedd6fe
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 cedd6fe

Please sign in to comment.