-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.sbt
81 lines (67 loc) · 3 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
import sbt.Keys.resolvers
name := "harness-auth-server"
version := "0.3.0"
scalaVersion := "2.11.12"
lazy val akkaVersion = "2.4.18"
lazy val akkaHttpVersion = "10.0.9"
lazy val circeVersion = "0.8.0"
lazy val scalaTestVersion = "3.0.1"
resolvers += Resolver.bintrayRepo("hseeberger", "maven")
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
resolvers += "Novus Release Repository" at "http://repo.novus.com/releases/"
lazy val commonSettings = Seq(
organization := "com.actionml",
version := "0.3.0",
scalaVersion := "2.11.12",
updateOptions := updateOptions.value.withLatestSnapshots(false),
resolvers += Resolver.bintrayRepo("hseeberger", "maven"),
resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots",
resolvers += Resolver.mavenLocal,
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.slf4j" % "log4j-over-slf4j" % "1.7.25",
"com.typesafe.scala-logging" %% "scala-logging" % "3.5.0",
"org.typelevel" %% "cats" % "0.9.0",
"com.typesafe" % "config" % "1.3.1",
"com.iheart" %% "ficus" % "1.4.0",
"org.scalatest" %% "scalatest" % scalaTestVersion % "test"
)
)
import xerial.sbt.Sonatype._
lazy val harnessAuthCommon = (project in file("harness-auth-common")).
settings(
name := "harness-auth-common",
commonSettings,
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
sonatypeProfileName := "com.actionml",
pomIncludeRepository := { _ => false },
licenses := Seq("APL2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
sonatypeProjectHosting := Some(GitHubHosting("actionml", "harness-auth-server", "[email protected]")),
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-generic-extras" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"de.heikoseeberger" %% "akka-http-circe" % "1.16.0",
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"org.scaldi" %% "scaldi-akka" % "0.5.8"
)
)
lazy val authServer = (project in file("auth-server")).dependsOn(harnessAuthCommon).settings(
commonSettings,
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion,
"org.mongodb.scala" %% "mongo-scala-driver" % "2.3.0",
"org.mongodb.scala" %% "mongo-scala-bson" % "2.3.0",
"org.mongodb" % "bson" % "3.7.0",
"org.mongodb" % "mongodb-driver-core" % "3.7.0",
"org.mongodb" % "mongodb-driver-async" % "3.7.0"
)
).enablePlugins(JavaAppPackaging).aggregate(harnessAuthCommon)