0

Is there a way to specify a different file other than build.sbt when compiling with scala?

I want to be able to have 2 different files: -> dev.sbt -> prod.sbt

There are some docker configurations I need to have different in each file that are environment specific.

  • What configurations? Can't you specify that with the same .sbt file and different targets or build options? – nmat Feb 08 '17 at 23:41
  • I don't believe so. I was hoping to have in the build.sbt. FROM image_dev FROM image_prod based on the environment that the build is going to from Jenkins. Do you know of documentation to outline how to do that in the build.sbt? – Marc Murray Feb 09 '17 at 16:19
  • Can't you just add that as an environment variable? – nmat Feb 09 '17 at 16:47
  • ahhh like this: http://stackoverflow.com/questions/26406013/sbt-how-to-access-environment-variable-or-configuration – Marc Murray Feb 10 '17 at 00:26

0 Answers0