-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
46 lines (31 loc) · 1.59 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
36
37
38
39
40
41
42
43
44
45
46
import com.typesafe.config._
val conf = ConfigFactory.parseFile(new File("conf/application.conf")).resolve()
name := """ls"""
version := conf.getString("app.version")
lazy val root = (project in file(".")).enablePlugins(PlayJava)
resolvers += "Hibernate Spatial" at "http://www.hibernatespatial.org/repository"
scalaVersion := "2.11.7"
libraryDependencies ++= Seq(
javaJpa,
cache,
javaWs,
"javax.ws.rs" % "jsr311-api" % "0.11",
"com.thoughtworks.xstream" % "xstream" % "1.4.7",
"org.hibernate" % "hibernate-entitymanager" % "4.3.11.Final",
"org.hibernate" % "hibernate-spatial" % "4.3" ,
"pl.matisoft" %% "swagger-play24" % "1.4",
"org.easytesting" % "fest-assert" % "1.4" % Test
)
libraryDependencies += "junit" % "junit" % "4.12" % Test
libraryDependencies += "com.auth0" % "auth0" % "0.2.1"
// 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)
// Needed as workaround for jpa persistence.xml bug https://github.com/playframework/playframework/issues/4590
PlayKeys.externalizeResources := false
// Java project. Don't expect Scala IDE
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java
// Use .class files instead of generated .scala files for views and routes
EclipseKeys.createSrc := EclipseCreateSrc.ValueSet(EclipseCreateSrc.ManagedClasses, EclipseCreateSrc.ManagedResources)