-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.sbt
More file actions
64 lines (57 loc) · 2.06 KB
/
Copy pathbuild.sbt
File metadata and controls
64 lines (57 loc) · 2.06 KB
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
enablePlugins(AutomateHeaderPlugin)
headerLicense := Some(HeaderLicense.ALv2("2016", "Nikolay Donets"))
lazy val buildSettings = Seq(
organization := "com.github.nikdon",
name := "telepooz",
version := "0.5.6",
scalaVersion := "2.12.3",
licenses += ("Apache-2.0", url(/sitelet?url=https%3A%2F%2Fgithub.com%2Fnikdon%2Ftelepooz%2Fblob%2Fmaster%2F%26quot%3Bhttp%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0%26quot%3B))
)
lazy val compilerOptions = Seq(
"-deprecation",
"-encoding",
"UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-unchecked",
"-Xfatal-warnings",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Xfuture"
)
lazy val baseSettings = Seq(
scalacOptions ++= compilerOptions ++ Seq(
"-Ywarn-unused-import"
),
testOptions in Test += Tests.Argument("-oF"),
scalacOptions in (Compile, console) := compilerOptions,
scalacOptions in (Compile, test) := compilerOptions,
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
Resolver.sonatypeRepo("snapshots")
),
mappings.in(Compile, packageBin) += baseDirectory.in(ThisBuild).value / "LICENSE" -> "LICENSE"
)
buildSettings ++ baseSettings
lazy val akkaHttpV = "10.0.10"
lazy val akkaHttpJsonV = "1.18.0"
lazy val catsV = "0.9.0"
lazy val circeVersion = "0.8.0"
lazy val scalaTestV = "3.0.4"
lazy val scalaCheckV = "1.13.5"
libraryDependencies ++= Seq(
"org.typelevel" %% "cats" % catsV,
"com.typesafe.akka" %% "akka-http-core" % akkaHttpV,
"com.typesafe.akka" %% "akka-http" % akkaHttpV,
"com.typesafe.akka" %% "akka-http-testkit" % akkaHttpV,
"io.circe" %% "circe-core" % circeVersion,
"io.circe" %% "circe-generic" % circeVersion,
"io.circe" %% "circe-generic-extras" % circeVersion,
"io.circe" %% "circe-parser" % circeVersion,
"io.circe" %% "circe-testing" % circeVersion,
"de.heikoseeberger" %% "akka-http-circe" % akkaHttpJsonV,
"org.scalatest" %% "scalatest" % scalaTestV % Test,
"org.scalacheck" %% "scalacheck" % scalaCheckV % Test
)