This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
110 lines (87 loc) · 3.86 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import sbt.Keys.resolvers
name := "doj-server"
version := "1.0"
addCompilerPlugin("org.scalamacros" % "paradise_2.12.7" % "2.1.1")
val playVersion = "2.6.20"
val playSlickVersion = "3.0.3"
val slickVersion = "3.2.3"
val slickPgVersion = "0.16.3"
val sangriaVersion = "1.4.2"
val circeVersion = "0.10.1"
lazy val commonSettings = Seq(
scalaVersion := "2.12.7",
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
resolvers += "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/",
resolvers += "Bintray sbt plugin" at "https://dl.bintray.com/playframework/sbt-plugin-releases/",
resolvers += "Bintray Scalaz" at "https://dl.bintray.com/scalaz/releases",
resolvers += Resolver.sonatypeRepo("snapshots"),
libraryDependencies ++= Seq(
// default
ehcache,
ws,
specs2 % Test,
guice,
// play framework
// @see https://mvnrepository.com/artifact/com.typesafe.play/play
"com.typesafe.play" %% "play" % playVersion,
// @see https://mvnrepository.com/artifact/com.typesafe.play/play-cache
"com.typesafe.play" %% "play-cache" % playVersion,
// circe
// @see https://circe.github.io/circe/
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
// circe for play frameword
// @see https://github.com/jilen/play-circe
"com.dripower" %% "play-circe" % "2610.0",
// slick for play framework
// @see https://www.playframework.com/documentation/2.6.x/PlaySlick
"com.typesafe.play" %% "play-slick" % playSlickVersion,
// @see https://www.playframework.com/documentation/2.6.x/PlaySlickMigrationGuide
"com.typesafe.play" %% "play-slick-evolutions" % playSlickVersion,
// slick codegen
// @see https://mvnrepository.com/artifact/com.typesafe.slick/slick-codegen
"com.typesafe.slick" %% "slick-codegen" % slickVersion,
// postgres for slick
// @see https://github.com/tminglei/slick-pg
// @see https://mvnrepository.com/artifact/com.github.tminglei/slick-pg
"com.github.tminglei" %% "slick-pg" % slickPgVersion exclude("org.postgresql", "postgresql"),
// @see https://mvnrepository.com/artifact/com.github.tminglei/slick-pg_circe-json
"com.github.tminglei" %% "slick-pg_circe-json" % slickPgVersion
excludeAll ExclusionRule(organization = "io.circe"),
// Java security engine
// @see http://pac4j.org/3.3.x/docs/index.html
"org.pac4j" % "pac4j-oidc" % "3.3.0" exclude("commons-io", "commons-io"),
"org.pac4j" %% "play-pac4j" % "6.1.0",
// Sangria
// @see https://mvnrepository.com/artifact/org.sangria-graphql/sangria
"org.sangria-graphql" %% "sangria" % sangriaVersion,
"org.sangria-graphql" %% "sangria-relay" % sangriaVersion,
"org.sangria-graphql" %% "sangria-slowlog" % "0.1.8",
// @see https://mvnrepository.com/artifact/org.sangria-graphql/sangria-circe
"org.sangria-graphql" %% "sangria-circe" % "1.2.1"
excludeAll ExclusionRule(organization = "io.circe"),
// h2
// @see https://mvnrepository.com/artifact/com.h2database/h2
"com.h2database" % "h2" % "1.4.197",
// commons-io
// @see https://mvnrepository.com/artifact/commons-io/commons-io
"commons-io" % "commons-io" % "2.6",
),
dependencyOverrides ++= Seq(
// Postgresql
// @see https://mvnrepository.com/artifact/org.postgresql/postgresql
"org.postgresql" %% "postgresql" % "42.2.5",
),
unmanagedResourceDirectories in Test += (baseDirectory.value / "target/web/public/test"),
evictionWarningOptions in update := EvictionWarningOptions.default
.withWarnTransitiveEvictions(false)
.withWarnDirectEvictions(false)
)
lazy val `macro` = project
.settings(commonSettings)
lazy val `doj_server_scala` = (project in file("."))
.dependsOn(`macro`)
.aggregate(`macro`)
.settings(commonSettings)
.enablePlugins(PlayScala)