diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-01-12 20:53:11 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2020-01-12 20:53:11 +0100 |
commit | 9e93731bb2539bdca0c526135ceb2a2e65093eaf (patch) | |
tree | 2973918997503c3031604eff7c4315bede53de91 | |
parent | 9642ddd2ce07eaea03319a10fdf96c3683b934f1 (diff) |
Compile Java and Scala sources side by side.
Sets {main,test}.scala.srcDirs such that it encompasses both Java and
Scala source files and making {main,test}.scala.srcDirs empty. This
way, Java and Scala sources are compiled in parallel and quarkusDev
picks changes in all of them up.
Change-Id: I4fd4fab23216ee3c00ce22948ff6c971fc295410
-rw-r--r-- | build.gradle | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index f436299..6ddb752 100644 --- a/build.gradle +++ b/build.gradle @@ -5,6 +5,25 @@ plugins { id "com.diffplug.gradle.spotless" version "3.27.0" } +sourceSets { + main { + scala { + srcDirs = ['src/main/scala', 'src/main/java'] + } + java { + srcDirs = [] + } + } + test { + scala { + srcDirs = ['src/test/scala', 'src/test/java'] + } + java { + srcDirs = [] + } + } +} + repositories { mavenLocal() mavenCentral() |