Skip to content

Instantly share code, notes, and snippets.

@freekh
Created December 19, 2012 13:03
Show Gist options
  • Save freekh/4336532 to your computer and use it in GitHub Desktop.
Save freekh/4336532 to your computer and use it in GitHub Desktop.
import sbt._
import Keys._
import play.Project._
object ApplicationBuild extends Build {
val appName = "javatest"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
// Add your project dependencies here,
javaCore,
javaJdbc,
javaEbean
)
import VersionInfoPlugin._
//add this: ^ import the plugin
val main = play.Project(appName, appVersion, appDependencies).settings(
// Add your own project settings here
).settings(versionInfoSettings: _*)
//add this: ^ enable the plugin
.settings(
versionInfoPackage := "com.mycompany.utils"
//add this: ^ the package for the generated class
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment