Skip to content

Commit

Permalink
Put Scala CLI workspaces under out/ during build
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Feb 24, 2022
1 parent 1e0c906 commit e56103b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions project/settings.sc
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ trait ScalaCliCompile extends ScalaModule {
else T.persistent {
val out = os.pwd / workspaceDirName / ".unused"

val workspace = T.dest / "workspace"
os.makeDir.all(workspace)
val sourceFiles = allSources()
.map(_.path)
.filter(os.exists(_))
Expand All @@ -724,6 +726,7 @@ trait ScalaCliCompile extends ScalaModule {
asOpt(compileClasspath().map(_.path), "--jar"),
asOpt(scalacPluginClasspath().map(p => s"-Xplugin:${p.path}"), "-O"),
Seq("--jvm", "zulu:17"),
workspace,
sourceFiles
)

Expand Down

0 comments on commit e56103b

Please sign in to comment.