From fe23df1e52bc0c112dc3f7a2d6d989aebdba4079 Mon Sep 17 00:00:00 2001 From: jvican Date: Wed, 19 Apr 2017 07:50:18 +0200 Subject: [PATCH] Fix #3062: Reduce red squiggles in Intellij This commit fixes most of the red squiggles created by the lack of analysis of Contraband-generated Scala files. It does not end with all the red squiggles but it substantially decreases the amount of them. --- build.sbt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.sbt b/build.sbt index 3c611b4b4..79bd12670 100644 --- a/build.sbt +++ b/build.sbt @@ -107,6 +107,8 @@ lazy val testingProj = (project in file("testing")). baseSettings, name := "Testing", libraryDependencies ++= Seq(testInterface,launcherInterface, sjsonNewScalaJson), + managedSourceDirectories in Compile += + baseDirectory.value / "src" / "main" / "contraband-scala", sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala", contrabandFormatsForType in generateContrabands in Compile := ContrabandConfig.getFormats ). @@ -184,6 +186,8 @@ lazy val protocolProj = (project in file("protocol")). testedBaseSettings, name := "Protocol", libraryDependencies ++= Seq(sjsonNewScalaJson), + managedSourceDirectories in Compile += + baseDirectory.value / "src" / "main" / "contraband-scala", sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala", contrabandFormatsForType in generateContrabands in Compile := ContrabandConfig.getFormats ). @@ -197,6 +201,8 @@ lazy val commandProj = (project in file("main-command")). testedBaseSettings, name := "Command", libraryDependencies ++= Seq(launcherInterface, sjsonNewScalaJson, templateResolverApi), + managedSourceDirectories in Compile += + baseDirectory.value / "src" / "main" / "contraband-scala", sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala", contrabandFormatsForType in generateContrabands in Compile := ContrabandConfig.getFormats ).