-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
26 lines (26 loc) · 1.11 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
lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayPekkoHttpServer) // uncomment to use the Netty backend
.settings(
name := """play-java-jpa-example""",
version := "1.0-SNAPSHOT",
crossScalaVersions := Seq("2.13.14", "3.3.3"),
scalaVersion := crossScalaVersions.value.head,
fork := true,
libraryDependencies ++= Seq(
guice,
javaJpa,
javaJdbc,
"com.h2database" % "h2" % "2.3.232",
"org.hibernate" % "hibernate-core" % "6.6.0.Final",
"com.mysql" % "mysql-connector-j" % "9.1.0",
javaWs % "test",
"org.awaitility" % "awaitility" % "4.2.2" % "test",
"org.assertj" % "assertj-core" % "3.26.3" % "test",
"org.mockito" % "mockito-core" % "5.13.0" % "test",
),
Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),
scalacOptions ++= List("-feature", "-Werror"),
javacOptions ++= List("-Xlint:unchecked", "-Xlint:deprecation", "-Werror"),
PlayKeys.externalizeResourcesExcludes += baseDirectory.value / "conf" / "META-INF" / "persistence.xml"
)