File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 // ==============================================================================================
You can’t perform that action at this time.
0 commit comments