-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
98 lines (90 loc) · 2.47 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
version in ThisBuild := "0.0.7-SNAPSHOT"
lazy val root = project
.in(file("."))
.settings(name := "httpaste")
.settings(commonSettings)
.settings(noPublish)
.dependsOn(
`httpaste-akkahttp`,
`httpaste-curl`,
`httpaste-scalajhttp`
)
.aggregate(
`httpaste-akkahttp`,
`httpaste-core`,
`httpaste-curl`,
`httpaste-scalajhttp`
)
lazy val `httpaste-curl` = project
.settings(commonSettings)
.settings(publishSettings)
.settings(libraryDependencies ++= Seq(
"com.lihaoyi" %% "fastparse" % "0.4.3",
"org.scala-lang" % "scala-reflect" % "2.12.2",
"com.propensive" %% "contextual" % "1.0.1",
"org.scalatest" %% "scalatest" % "3.0.3" % Test,
"com.chuusai" %% "shapeless" % "2.3.2" % Test
))
.dependsOn(`httpaste-core`)
lazy val `httpaste-scalajhttp` = project
.settings(commonSettings)
.settings(publishSettings)
.settings(libraryDependencies ++= Seq(
"org.scalaj" %% "scalaj-http" % "2.3.0"
))
.dependsOn(`httpaste-core`)
lazy val `httpaste-akkahttp` = project
.settings(commonSettings)
.settings(publishSettings)
.settings(libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-http" % "10.0.8"
))
.dependsOn(`httpaste-core`)
lazy val `httpaste-core` = project
.settings(commonSettings)
.settings(publishSettings)
lazy val commonSettings = Seq(
organization := "com.github.rockjam",
scalaVersion := "2.12.2",
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yno-adapted-args",
"-Ywarn-dead-code",
"-Ywarn-numeric-widen",
"-Ywarn-value-discard",
"-Xfuture"
),
(scalacOptions in(Compile, console)) := scalacOptions.value.filterNot(_ == "-Xfatal-warnings")
)
lazy val publishSettings = Seq(
homepage := Some(url("https://github.com/rockjam/httpaste")),
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0")),
scmInfo := Some(
ScmInfo(
url("https://github.com/rockjam/httpaste"),
"scm:git@github.com:rockjam/httpaste.git"
)
),
developers := List(
Developer(
"rockjam",
"Nikolay Tatarinov",
"5min4eq.unity@gmail.com",
url("https://github.com/rockjam")
)
)
)
lazy val noPublish = Seq(
publish := {},
publishLocal := {},
publishArtifact := false,
bintraySyncMavenCentral := {}
)