From 9e93731bb2539bdca0c526135ceb2a2e65093eaf Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 12 Jan 2020 20:53:11 +0100 Subject: 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 --- build.gradle | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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() -- cgit v1.2.3