Skip to content

Commit 228a85c

Browse files
committed
Adding the compiler plugin to the compiler settings
1 parent bc123a6 commit 228a85c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

server/src/main/scala/org/scalaexercises/evaluator/evaluation.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ class Evaluator(timeout: FiniteDuration = 20.seconds)(
7676
if (jars.nonEmpty) {
7777
val newJars = jars.mkString(File.pathSeparator)
7878
classpath.value = newJars + File.pathSeparator + classpath.value
79+
80+
(jars map (_.toString)).find(_.contains("paradise")) match {
81+
case Some(compilerJar) => plugin.appendToValue(compilerJar)
82+
case None =>
83+
}
7984
}
8085

8186
processArguments(compilerFlags, processAll = true)

0 commit comments

Comments
 (0)