Skip to content

Commit 12e655f

Browse files
authored
MINOR: Enable scala/java joint compilation consistently for core module (apache#10485)
We were doing it only for test files previously. Reviewers: Chia-Ping Tsai <[email protected]>, Jose Sancio <[email protected]>
1 parent 7bc84d6 commit 12e655f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,9 +1029,13 @@ project(':core') {
10291029
}
10301030

10311031
sourceSets {
1032+
// Set java/scala source folders in the `scala` block to enable joint compilation
10321033
main {
10331034
java {
1034-
srcDirs = ["src/generated/java", "src/main/java"]
1035+
srcDirs = []
1036+
}
1037+
scala {
1038+
srcDirs = ["src/generated/java", "src/main/java", "src/main/scala"]
10351039
}
10361040
}
10371041
test {

0 commit comments

Comments
 (0)