Is there a way to specify an alternate location for sbt to search for assembly configuration via command line?

As far as I can tell when running the sbt executable, it looks for your build configuration in the current directory structure (build.sbt or build scala). Is there a way to specify an alternative location for the sbt executable to search for build.sbt or build scala files? Also, is there a way to similarly specify the working directory?

For example, can I run sbt from any directory, but specify a command line argument to indicate which build.sbt file I want to run and where the working directory should work?

Sort of:

sbt -b /some/dir1/with/build.sbt -w /tmp/sbt/working/dir

I want to do this outside of the build.sbt file, simply via the command line.

+4
source share
1 answer

It's impossible. build.sbtshould be in the same folder where you run the sbt command

+1
source

All Articles