forked from pac4j/http4s-pac4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
executable file
·82 lines (74 loc) · 2.58 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
crossScalaVersions := Seq("2.12.15", "2.13.7", "3.1.0")
organization := "org.pac4j"
version := "4.1.1-SNAPSHOT"
val circeVersion = "0.14.1"
val http4sVersion = "0.23.6"
val pac4jVersion = "5.4.2"
val specs2Version = "4.12.12"
val catsVersion = "2.6.1"
val vaultVersion = "3.1.0"
val mouseVersion = "1.0.7"
libraryDependencies ++= Seq(
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-jawn" % circeVersion,
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-server" % http4sVersion,
"org.http4s" %% "http4s-circe" % http4sVersion,
"org.pac4j" % "pac4j-core" % pac4jVersion,
"org.slf4j" % "slf4j-api" % "1.7.26",
"commons-codec" % "commons-codec" % "1.14",
"org.typelevel" %% "cats-core" % catsVersion,
"org.typelevel" %% "vault" % vaultVersion,
"org.typelevel" %% "mouse" % mouseVersion,
"org.scala-lang.modules" %% "scala-collection-compat" % "2.6.0",
)
libraryDependencies ++= {
CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, _)) => Seq(
"io.circe" %% "circe-optics" % circeVersion % Test,
"org.http4s" %% "http4s-jawn" % http4sVersion % Test,
"org.specs2" %% "specs2-matcher-extra" % specs2Version % Test,
"org.specs2" %% "specs2-scalacheck" % specs2Version % Test,
"org.specs2" %% "specs2-cats" % specs2Version,
)
case _ => Seq()
}
}
val username = sys.env.get("SONATYPE_USERNAME").getOrElse("")
val password = sys.env.get("SONATYPE_PASSWORD").getOrElse("")
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
homepage := Some(url("https://github.com/pac4j/http4s-pac4j"))
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scmInfo := Some(
ScmInfo(
url("https://github.com/pac4j/http4s-pac4j"),
"scm:git@github.com:pac4j/http4s-pac4j.git"
)
)
developers := List(
Developer(
id = "leleuj",
name = "Jerome LELEU",
email = "leleuj@gmail.com",
url = url("https://github.com/leleuj")
)
)
pomIncludeRepository := { _ => 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")
}
publishMavenStyle := true
scalacOptions ++= {
val scalaVersion0 = scalaVersion.value
val partialUnification =
if (scalaVersion0.startsWith("2.12")) {
Seq("-Ypartial-unification")
} else Seq()
partialUnification ++ Seq(
"-deprecation",
"-language:implicitConversions",
"-language:higherKinds"
)
}