-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
43 lines (32 loc) · 1.18 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
organization := "nl.surfnet.bod"
name := "nsi-requester"
version := "2.1-SNAPSHOT"
Global / onChangedBuildSource := ReloadOnSourceChanges
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "3.3.4"
scalacOptions ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-Wunused:imports,privates,locals,params",
"-release:21"
)
val gitHeadCommitSha = settingKey[String]("git HEAD SHA")
gitHeadCommitSha := scala.sys.process.Process("git rev-parse --short HEAD").lineStream.head
enablePlugins(BuildInfoPlugin)
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, gitHeadCommitSha)
buildInfoPackage := "support"
libraryDependencies ++= Seq(
guice,
ws,
"org.scala-stm" %% "scala-stm" % "0.11.1",
"joda-time" % "joda-time" % "2.12.0",
specs2 % "test",
"org.specs2" %% "specs2-matcher-extra" % "4.20.7" % "test"
)
lazy val licenseText = settingKey[String]("Project license text.")
licenseText := IO.read(baseDirectory.value / "LICENSE")
organizationName := "SURFnet B.V."
startYear := Some(2012)
licenses += ("BSD-3-Clause", new URL("file:LICENSE"))
PlayKeys.devSettings += "play.server.websocket.periodic-keep-alive-max-idle" -> "10 seconds"