forked from nulab/akka-http-oauth2-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuid.sbt
60 lines (57 loc) · 2.39 KB
/
buid.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
val akkaHttpVersion = "10.1.8"
val akkaVersion = "2.5.22"
val commonDependenciesInTestScope = Seq(
"org.scalatest" %% "scalatest" % "3.0.5" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.3" % "test"
)
lazy val scalaOAuth2ProviderSettings =
Defaults.coreDefaultSettings ++
Seq(
organization := "com.nulab-inc",
scalaVersion := "2.12.6",
crossScalaVersions := Seq("2.12.6", "2.11.12"),
scalacOptions ++= Seq("-deprecation", "-unchecked", "-feature"),
publishTo := {
val v = version.value
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { x => false },
pomExtra := <url>https://github.com/nulab/akka-http-oauth2-provider</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/nulab/akka-http-oauth2-provider</url>
<connection>scm:git:git@github.com:nulab/akka-http-oauth2-provider.git</connection>
</scm>
<developers>
<developer>
<id>tsuyoshizawa</id>
<name>Tsuyoshi Yoshizawa</name>
<url>https://github.com/tsuyoshizawa</url>
</developer>
</developers>
)
lazy val root = (project in file("."))
.settings(
name := "akka-http-oauth2-provider",
description := "Support scala-oauth2-core library on akka-http",
version := "1.3.1-SNAPSHOT",
libraryDependencies ++= Seq(
"com.nulab-inc" %% "scala-oauth2-core" % "1.3.0" % "provided",
"com.typesafe.akka" %% "akka-http-core" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-stream" % akkaVersion % "provided",
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion % "provided",
"com.typesafe.akka" %% "akka-stream-testkit" % akkaVersion % "provided"
) ++ commonDependenciesInTestScope
)