-
Notifications
You must be signed in to change notification settings - Fork 17
/
build.sbt
82 lines (61 loc) · 2.61 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
import sbt.url
version := "1.13.5"
name := "elastic4play"
organization := "org.thehive-project"
organizationName := "TheHive-Project"
organizationHomepage := Some(url("https://thehive-project.org/"))
homepage := Some(url("https://github.com/TheHive-Project/elastic4play"))
licenses += "AGPL-V3" -> url("https://www.gnu.org/licenses/agpl-3.0.html")
description := "Library to use Elasticsearch with Play framework"
lazy val elastic4play = (project in file("."))
.enablePlugins(PlayScala, PlayAkkaHttp2Support)
// Add Http2 support to be able to ask client certificate
// cf. https://github.com/playframework/playframework/issues/8143
scalaVersion := "2.12.16"
resolvers += "elasticsearch-releases" at "https://artifacts.elastic.co/maven"
scmInfo := Some(
ScmInfo(
url("https://github.com/TheHive-Project/sbt-github-changelog"),
"scm:git@github.com:TheHive-Project/sbt-github-changelog.git"
)
)
developers := List(
Developer(
id = "toom",
name = "Thomas",
email = "thomas@thehive-project.org",
url = url("https://github.com/To-om")
)
)
licenses += ("AGPL-3", url("https://www.gnu.org/licenses/agpl-3.0.html"))
val elastic4sVersion = "7.17.2"
libraryDependencies ++= Seq(
cacheApi,
"com.sksamuel.elastic4s" %% "elastic4s-core" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-http-streams" % elastic4sVersion,
"com.sksamuel.elastic4s" %% "elastic4s-client-esjava" % elastic4sVersion,
"com.typesafe.akka" %% "akka-stream-testkit" % play.core.PlayVersion.akkaVersion % Test,
"org.scalactic" %% "scalactic" % "3.2.12",
"org.bouncycastle" % "bcprov-jdk15on" % "1.61",
specs2 % Test
)
dependencyOverrides ++= Seq(
"com.typesafe.akka" %% "akka-actor" % play.core.PlayVersion.akkaVersion
)
PlayKeys.externalizeResources := false
pomIncludeRepository := { _ => false }
publishTo := sonatypePublishToBundle.value
pgpSigningKey := Some("0CD5AC59DE5C5A8E0EE138493D99BB18562CBC1C")
publishMavenStyle := true
scalacOptions in ThisBuild ++= Seq(
"-encoding",
"UTF-8",
"-deprecation", // warning and location for usages of deprecated APIs
"-feature", // warning and location for usages of features that should be imported explicitly
"-unchecked", // additional warnings where generated code depends on assumptions
"-Xlint", // recommended additional warnings
"-Ywarn-adapted-args", // Warn if an argument list is modified to match the receiver
"-Ywarn-value-discard", // Warn when non-Unit expression results are unused
"-Ywarn-inaccessible",
"-Ywarn-dead-code"
)