Skip to content

Commit 9a8f193

Browse files
committed
allow to run the repl with the stdlib in the classpath
1 parent 473246e commit 9a8f193

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

project/Build.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,15 @@ object Build {
18881888
s"-Ddotty.tools.dotc.semanticdb.test=${(ThisBuild / baseDirectory).value/"tests"/"semanticdb"}",
18891889
)
18901890
},
1891+
run / fork := true,
1892+
excludeDependencies += "org.scala-lang" %% "scala3-library",
1893+
excludeDependencies += "org.scala-lang" % "scala-library",
1894+
Compile / run := {
1895+
//val classpath = s"-classpath ${(`scala-library-bootstrapped` / Compile / packageBin).value}"
1896+
// TODO: We should use the val above instead of `-usejavacp` below. SBT crashes we we have a val and we call toTask
1897+
// with it as a parameter. THIS IS NOT A LEGIT USE CASE OF THE `-usejavacp` FLAG.
1898+
(Compile / run).toTask(" -usejavacp").value
1899+
},
18911900
)
18921901

18931902
// ==============================================================================================

0 commit comments

Comments
 (0)