-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
35 lines (24 loc) · 1.3 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name := """recipes"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayJava)
scalaVersion := "2.11.6"
libraryDependencies ++= Seq(
javaJdbc,
cache,
javaWs,
javaJpa,
"org.hibernate" % "hibernate-entitymanager" % "4.3.9.Final", // replace by your jpa implementation
"org.postgresql" % "postgresql" % "9.4-1205-jdbc4"
//"org.avaje.ebeanorm" % "avaje-ebeanorm" % "6.10.4"
//"org.hibernate.javax.persistence" % "hibernate-jpa-2.1-api" % "1.0.0.Final"
)
// Play provides two styles of routers, one expects its actions to be injected, the
// other, legacy style, accesses its actions statically.
routesGenerator := InjectedRoutesGenerator
// Compile the project before generating Eclipse files, so that generated .scala or .class files for views and routes are present
EclipseKeys.preTasks := Seq(compile in Compile)
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java // Java project. Don't expect Scala IDE
EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.ManagedClasses, EclipseCreateSrc.ManagedResources) // Use .class files instead of generated .scala files for views and routes
fork in run := true
//lazy val myProject = (project in file(".")).enablePlugins(PlayJava, PlayEbean)
lazy val myProject = (project in file(".")).enablePlugins(PlayJava)