Send module version as command line argument to SBT
问题 I am using TeamCity to run a bash script that is utilizing SBT Native Packager to publish an image to Docker. The sbt portion of the bash script looks something like this: sbt -DdockerRepository=$repo -DpackageName=$packageName -D myproject/docker:publish I want to pass on the TeamCity build number as a version number to my package. Today I specify the version number manually in settings in build.sbt: settings( version := "0.20", ...., dockerBaseImage := "example.com:5000/linux/java8:latest",