This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.sbt
57 lines (47 loc) · 1.46 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
name := "jwt"
organization := "io.igl"
version := "1.2.2"
scalaVersion := "2.12.1"
crossScalaVersions := Seq("2.11.7", "2.12.1")
libraryDependencies ++= Seq(
playjson(scalaVersion.value),
"commons-codec" % "commons-codec" % "1.10",
scalatest(scalaVersion.value)
)
def playjson(scalaVersion: String) = scalaVersion match {
case "2.12.1" => "com.typesafe.play" %% "play-json" % "2.6.0-M6"
case "2.11.7" => "com.typesafe.play" %% "play-json" % "2.4.0"
}
def scalatest(scalaVersion: String) = scalaVersion match {
case "2.12.1" => "org.scalatest" % "scalatest_2.12" % "3.0.1" % "test"
case "2.11.7" => "org.scalatest" % "scalatest_2.11" % "2.2.4" % "test"
}
publishMavenStyle := true
publishArtifact in Test := false
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")
}
pomExtra := (
<url>github.com/iain-logan/jwt</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:iain-logan/jwt.git</url>
<connection>scm:git:[email protected]:iain-logan/jwt.git</connection>
</scm>
<developers>
<developer>
<id>iain-logan</id>
<name>Iain Logan</name>
<url>igl.io</url>
</developer>
</developers>)