MINOR: Enable scala/java joint compilation consistently for `core` module (#10485)

We were doing it only for test files previously.

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>, Jose Sancio <jsancio@gmail.com>
This commit is contained in:
Ismael Juma 2021-04-06 12:10:55 -07:00 committed by GitHub
parent 7bc84d6ced
commit 12e655f45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -1029,9 +1029,13 @@ project(':core') {
} }
sourceSets { sourceSets {
// Set java/scala source folders in the `scala` block to enable joint compilation
main { main {
java { java {
srcDirs = ["src/generated/java", "src/main/java"] srcDirs = []
}
scala {
srcDirs = ["src/generated/java", "src/main/java", "src/main/scala"]
} }
} }
test { test {