-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.sbt
48 lines (36 loc) · 1.96 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
47
48
import scala.collection.Seq
import scala.sys.process.Process
name := """play-slick-example"""
version := "1.0-SNAPSHOT"
lazy val root = (project in file(".")).enablePlugins(PlayScala)
scalaVersion := "3.3.3"
routesGenerator := InjectedRoutesGenerator
libraryDependencies += "org.playframework" %% "play-slick" % "6.1.0"
libraryDependencies += "org.playframework" %% "play-slick-evolutions" % "6.1.0"
libraryDependencies += "org.playframework" %% "play-json" % "3.0.2"
libraryDependencies += "org.scalatestplus.play" %% "scalatestplus-play" % "7.0.0" % "test"
libraryDependencies += "com.dimafeng" %% "testcontainers-scala-scalatest" % "0.40.15" % "test"
libraryDependencies += "com.dimafeng" %% "testcontainers-scala-postgresql" % "0.40.15" % "test"
libraryDependencies += "org.postgresql" % "postgresql" % "42.7.0"
libraryDependencies += specs2 % Test
libraryDependencies += guice
libraryDependencies += ws
libraryDependencies += caffeine
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette" % "10.0.0"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-password-bcrypt" % "10.0.0"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-persistence" % "10.0.0"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-crypto-jca" % "10.0.0"
libraryDependencies += "net.codingwell" %% "scala-guice" % "6.0.0"
ThisBuild / libraryDependencySchemes ++= Seq(
"org.scala-lang.modules" %% "scala-xml" % VersionScheme.Always
)
val generateSha1: Unit = {
val sha1 = try {
Process("git rev-parse HEAD").!!.linesIterator.toList.head
} catch {
case e: Exception => println("Could not extract sha1 hash, you need to install command line git."); "???"
}
IO.write(file("conf/version.conf"), s"""sha1="$sha1"""")
}
//enable displaying of link to intellij in error page
javaOptions += "-Dplay.editor=http://localhost:63342/api/file/?file=%s&line=%s"