-
Notifications
You must be signed in to change notification settings - Fork 5
/
buid.sbt
64 lines (61 loc) · 2.45 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
61
62
63
64
val akkaHttpVersion = "10.1.9"
val akkaVersion = "2.5.23"
val commonDependenciesInTestScope = Seq(
"org.scalatest" %% "scalatest" % "3.2.0" % "test",
"ch.qos.logback" % "logback-classic" % "1.2.6" % "test"
)
lazy val scalaOAuth2ProviderSettings =
Defaults.coreDefaultSettings ++
Seq(
organization := "com.nulab-inc",
scalaVersion := "2.13.6",
crossScalaVersions := Seq("2.13.6", "2.12.14", "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,
Test / publishArtifact := 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:[email protected]: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(
scalaOAuth2ProviderSettings,
name := "akka-http-oauth2-provider",
description := "Support scala-oauth2-core library on akka-http",
version := "1.4.1-SNAPSHOT",
libraryDependencies ++= Seq(
"com.nulab-inc" %% "scala-oauth2-core" % "1.4.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
)