-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
104 lines (86 loc) · 3.35 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
100
101
102
103
104
lazy val commonSettings = Seq(
organization := "dekkR projects",
version := "0.0.2",
scalaVersion := "2.11.6"
)
lazy val root = (project in file(".")).
settings(commonSettings: _*).
settings(
name := "feedfrenzy-core"
)
.enablePlugins(BuildInfoPlugin).settings(
buildInfoKeys := Seq[BuildInfoKey](name, version, scalaVersion, sbtVersion),
buildInfoPackage := "hello"
)
libraryDependencies ++= {
val akkaV = "2.3.10"
val akkaStreamV = "1.0-M5"
val activateVersion = "1.7"
val scalaLoggingVersion = "3.1.0"
val slf4jVersion = "1.7.10"
val logbackVersion = "1.1.2"
Seq(
"com.typesafe.akka" %% "akka-actor" % akkaV,
"com.typesafe.akka" %% "akka-testkit" % akkaV % "test",
"com.typesafe.akka" %% "akka-stream-experimental" % akkaStreamV,
"com.typesafe.akka" %% "akka-http-core-experimental" % akkaStreamV,
"com.typesafe.akka" %% "akka-http-experimental" % akkaStreamV,
"com.typesafe.akka" %% "akka-http-spray-json-experimental" % akkaStreamV,
"com.typesafe.akka" %% "akka-http-testkit-experimental" % akkaStreamV % "test",
"commons-validator" % "commons-validator" % "1.4.1",
"org.scalaj" %% "scalaj-http" % "0.3.16",
"org.specs2" %% "specs2-core" % "2.3.13" % "test",
"com.typesafe.scala-logging" %% "scala-logging" % scalaLoggingVersion,
"org.slf4j" % "slf4j-api" % slf4jVersion,
"ch.qos.logback" % "logback-classic" % logbackVersion
)
}
testOptions in Test += Tests.Argument("-oD")
//coverageExcludedPackages := ".*BuildInfo.*;.*BootedCore.*;.*Boot.*"
//coverageMinimum := 80
//coverageFailOnMinimum := true
Revolver.settings
scalacOptions in ThisBuild ++= Seq(Opts.compile.deprecation, Opts.compile.unchecked) ++
Seq("-Ywarn-unused-import", "-Ywarn-unused", "-Xlint", "-feature")
// Seq(buildInfoSettings:_*)
// sourceGenerators in Compile <+= buildInfo
// buildInfoKeys := Seq[BuildInfoKey](version)
//
// buildInfoPackage := "feedfrenzy_core"
publishMavenStyle := true
licenses := Seq(
("MIT", url(s"https://github.com/dekkr/${name.value}/blob/${version.value}/LICENSE")))
bintrayOrganization := Some("dekkr")
bintrayRepository := "feedr"
bintrayPackageLabels := Seq("microservice", "scraping")
assemblyJarName in assembly := s"${name.value}-assembly-${version.value}.jar"
//assemblyMergeStrategy in assembly := {
// case x if x.contains("org/apache/commons/collections") => MergeStrategy.first
// case x if x.contains("com/esotericsoftware/minlog/") => MergeStrategy.first
// case x if x.contains("org/xmlpull/v1/XmlPullParser") => MergeStrategy.first
// case x =>
// val oldStrategy = (assemblyMergeStrategy in assembly).value
// oldStrategy(x)
//}
pomExtra :=
<url>http://dekkr.nl</url>
<licenses>
<license>
<name>MIT</name>
<url>https://github.com/dekkr/${name.value}/blob/${version.value}/LICENSE</url>
</license>
</licenses>
<developers>
<developer>
<id>plamola</id>
<name>Matthijs Dekker</name>
<email>[email protected]</email>
<organization>dekkR.nl</organization>
<organizationUrl>http://dekkr.nl</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:[email protected]:dekkr/{name.value}.git</connection>
<developerConnection>scm:git:[email protected]:dekkr/{name.value}.git</developerConnection>
<url>[email protected]:dekkr/{name.value}.git</url>
</scm>