--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
// Comment to get more information during initializationlogLevel := Level.Warn// The Typesafe repositoryresolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"// Use the Play sbt plugin for Play projectsaddSbtPlugin("play" % "sbt-plugin" % "2.0.1")resolvers += Resolver.url("artifactory", url("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.1.1")
import sbt._import Keys._import PlayProject._import sbtbuildinfo.Plugin._object ApplicationBuild extends Build {val appName = "play-sbt-buildinfo-sample"val appVersion = "1.0-SNAPSHOT"val appDependencies = Seq(// Add your project dependencies here,)val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA,settings = Defaults.defaultSettings ++ buildInfoSettings).settings(sourceGenerators in Compile <+= buildInfo,buildInfoKeys := Seq[Scoped](name, version, scalaVersion, sbtVersion),buildInfoPackage := "hello")}
@(message: String)@("Welcome to %s %s" format (hello.BuildInfo.name, hello.BuildInfo.version))
No body?
Hey Guys,Has anyone tried integrating Play with sbt-buildinfo? I would like to be able to get the version of my Play app programmatically at runtime.Thanks,Drew--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
No body?
Hey Guys,Has anyone tried integrating Play with sbt-buildinfo? I would like to be able to get the version of my Play app programmatically at runtime.Thanks,Drew--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-framework@googlegroups.com.
To unsubscribe from this group, send email to play-framework+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/ls9tI4BBdgMJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.