forked from kolov/doorman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
85 lines (68 loc) · 2.36 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
import sbt.Keys.credentials
import sbt.{Credentials, Developer, Path, ScmInfo, url}
val Http4sVersion = "0.20.0-M3"
val Specs2Version = "4.1.0"
val LogbackVersion = "1.2.3"
val GoogleOauthClientVersion = "1.22.0"
val CirceVersion = "0.10.1"
organization := "com.akolov"
name := "doorman"
scalaVersion := "2.12.8"
description := "Oauth2 authentication and user session middleware for http4s"
licenses := Seq("MIT License" -> url("https://github.com/kolov/doorman/blob/master/LICENSE"))
homepage := Some(url("https://github.com/kolov/doorman"))
scmInfo := Some(
ScmInfo(
url("https://github.com/kolov/sbt-doorman"),
"scm:git@github.com:kolov/doorman.git"
)
)
developers := List(
Developer(
id = "kolov",
name = "Assen Kolov",
email = "assen.kolov@gmail.com",
url = url("https://github.com/kolov")
)
)
lazy val commonSettings = Seq(
addCompilerPlugin("org.spire-math" %% "kind-projector" % "0.9.6"),
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.2.4"),
)
lazy val testDependencies = Seq(
"org.specs2" %% "specs2-core" % Specs2Version % "test",
"org.specs2" %% "specs2-mock" % Specs2Version % "test",
)
lazy val core = (project in file("core")).settings(
name := "doorman-core",
commonSettings,
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-blaze-server" % Http4sVersion,
"org.http4s" %% "http4s-blaze-client" % Http4sVersion,
"org.http4s" %% "http4s-circe" % Http4sVersion,
"org.http4s" %% "http4s-dsl" % Http4sVersion,
"io.circe" %% "circe-generic" % CirceVersion,
"io.circe" %% "circe-parser" % CirceVersion,
// "com.akolov" %% "doorman" % "0.0.1"
) ++ testDependencies,
publishTo := Some("releases" at "https://oss.sonatype.org/service/local/staging/deploy/maven2"),
credentials += Credentials(Path.userHome / ".sonatype" / ".credentials")
)
lazy val demo = (project in file("demo"))
.dependsOn(core)
.settings(
commonSettings,
libraryDependencies ++= Seq(
"com.auth0" % "java-jwt" % "3.2.0",
"com.typesafe" % "config" % "1.3.2",
"ch.qos.logback" % "logback-classic" % LogbackVersion,
) ++testDependencies
)
lazy val root = (project in file("."))
.aggregate(demo, core)
.dependsOn(core, demo)
.settings(
tutSourceDirectory := (baseDirectory in Compile).value / "tut",
tutTargetDirectory := (baseDirectory in Compile).value
)
enablePlugins(TutPlugin)