I\'m using play 2.2 with Scala, how can I get version from build.sbt?
name := \"project_name\" version := \"0.2-SNAPSHOT\" play.Project.playScalaSettings >
I've added this to my build.sbt:
import com.typesafe.config._ val conf = ConfigFactory.parseFile(new File("conf/application.conf")).resolve() version := conf.getString("app.version")
and in my application.conf:
app.version="0.2-SNAPSHOT"