Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set the default project for SBT

Tags:

scala

build

sbt

Assume I have a build with three projects: A, B and C. If I am currently in the context of A and reload the build, it might change the context to be C after the reload. Because of this, I have to change my project context every time after reloading.

Is there a way to set a specific project as the default context?

like image 949
Omer van Kloeten Avatar asked Jan 25 '12 08:01

Omer van Kloeten


1 Answers

SBT chooses the first lexographical project variable name, so I just set my project name to:

val aaaFrontend = PlayProject(

Also, there's a projects Seq that I believe you can override.

Finally, in SBT 0.12 you can do it in you .sbtrc:

alias boot = ;reload ;project X ;iflast shell
like image 111
Ben McCann Avatar answered Sep 20 '22 14:09

Ben McCann