-
-
Notifications
You must be signed in to change notification settings - Fork 550
Expand file tree
/
Copy pathbuild.sbt
More file actions
40 lines (38 loc) · 1.33 KB
/
build.sbt
File metadata and controls
40 lines (38 loc) · 1.33 KB
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
lazy val scala213 = "2.13.16"
lazy val scala3 = "3.3.4"
lazy val root = (project in file("."))
.enablePlugins(PlayJava)
//.enablePlugins(PlayNettyServer).disablePlugins(PlayAkkaHttpServer) // uncomment to use the Netty backend
.settings(
name := "play-java-rest-api-example",
version := "1.0-SNAPSHOT",
scalaVersion := scala213,
crossScalaVersions := Seq(scala213, scala3),
libraryDependencies ++= Seq(
guice,
javaJpa,
"com.h2database" % "h2" % "2.3.232",
"org.hibernate" % "hibernate-core" % "7.0.5.Final",
"io.dropwizard.metrics" % "metrics-core" % "4.2.33",
"com.palominolabs.http" % "url-builder" % "1.1.5",
"net.jodah" % "failsafe" % "2.4.4",
),
PlayKeys.externalizeResources := false,
(Test / testOptions) := Seq(Tests.Argument(TestFrameworks.JUnit, "-a", "-v")),
javacOptions ++= Seq(
"-Xlint:unchecked",
"-Xlint:deprecation",
"-Werror"
)
)
val gatlingVersion = "3.9.5"
lazy val gatling = (project in file("gatling"))
.enablePlugins(GatlingPlugin)
.settings(
scalaVersion := scala213,
crossScalaVersions := Seq(scala213, scala3),
libraryDependencies ++= Seq(
"io.gatling.highcharts" % "gatling-charts-highcharts" % gatlingVersion % Test,
"io.gatling" % "gatling-test-framework" % gatlingVersion % Test
)
)