Skip to content

Commit

Permalink
Move -usejavacp to consoleScalacOptions, remove .distinct.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdziuban committed Jan 10, 2024
1 parent c377d1d commit 87de68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scalalib/src/mill/scalalib/ScalaModule.scala
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ trait ScalaModule extends JavaModule with TestModule.ScalaModuleBase { outer =>
/**
* Command-line options to pass to the Scala console
*/
def consoleScalacOptions: T[Seq[String]] = T(Seq.empty[String])
def consoleScalacOptions: T[Seq[String]] = T(Seq("-usejavacp"))

/**
* Opens up a Scala console with your module and all dependencies present,
Expand All @@ -457,7 +457,7 @@ trait ScalaModule extends JavaModule with TestModule.ScalaModuleBase { outer =>
),
jvmArgs = forkArgs(),
envArgs = forkEnv(),
mainArgs = (Seq("-usejavacp") ++ consoleScalacOptions()).distinct,
mainArgs = consoleScalacOptions(),
workingDir = forkWorkingDir()
)
}
Expand Down

0 comments on commit 87de68d

Please sign in to comment.