-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
99 lines (93 loc) · 2.88 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import de.heikoseeberger.sbtheader.AutomateHeaderPlugin
import de.heikoseeberger.sbtheader.license.Apache2_0
lazy val akkaHttpVersion = "10.0.0-RC2"
lazy val circeVersion = "0.6.0"
lazy val buildSettings = Seq(
organization := "io.fcomb",
organizationName := "fcomb",
description := "Akka Http Auth library",
startYear := Option(2016),
homepage := Option(url("https://github.com/fcomb/auth")),
organizationHomepage := Option(new URL("https://github.com/fcomb/auth")),
scalaVersion := "2.11.8",
crossScalaVersions := Seq("2.11.8", "2.12.0"),
headers := Map("scala" -> Apache2_0("2016", "fcomb. <https://github.com/fcomb/auth>")),
scalafmtConfig := Some(file(".scalafmt.conf"))
)
lazy val commonSettings =
reformatOnCompileSettings ++
Seq(
resolvers ++= Seq(
"Typesafe Releases" at "http://repo.typesafe.com/typesafe/maven-releases/",
Resolver.jcenterRepo,
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
),
scalacOptions ++= Seq(
"-encoding",
"UTF-8",
"-target:jvm-1.8",
"-unchecked",
"-deprecation",
"-feature",
"-language:higherKinds",
"-language:existentials",
"-language:postfixOps",
"-Xexperimental",
"-Xlint",
"-Xfatal-warnings",
"-Xfuture",
"-Ydelambdafy:method",
"-Yno-adapted-args",
"-Yno-imports",
"-Yno-predef",
"-Ywarn-dead-code",
"-Ywarn-infer-any",
"-Ywarn-numeric-widen",
"-Ywarn-unused",
"-Ywarn-unused-import",
"-Ywarn-value-discard"
),
javaOptions ++= Seq("-Dfile.encoding=UTF-8"),
javacOptions ++= Seq(
"-source",
"1.8",
"-target",
"1.8",
"-Xlint:unchecked",
"-Xlint:deprecation"
)
)
lazy val publishSettings = Seq(
bintrayOrganization := Some("fcomb"),
publishMavenStyle := true,
publishArtifact in Test := false,
homepage := Some(url("https://github.com/fcomb/auth")),
scmInfo := Some(
ScmInfo(url("https://github.com/fcomb/auth"),
"scm:git://github.com:fcomb/auth.git")),
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt")),
pomExtra := (
<developers>
<developer>
<id>TimothyKlim</id>
<name>Timothy Klim</name>
<url>https://twitter.com/TimothyKlim</url>
</developer>
</developers>
)
)
lazy val allSettings = buildSettings ++ commonSettings ++ publishSettings
lazy val jwt = project
.in(file("jwt"))
.enablePlugins(AutomateHeaderPlugin)
.settings(allSettings)
.settings(publishSettings)
.settings(
name := "auth",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion
)
)