-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
71 lines (65 loc) · 2.45 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
import sbt.Keys.{organization, scalacOptions}
import sbtrelease.ReleaseStateTransformations._
import xerial.sbt.Sonatype._
val akkaVersion = "2.6.3"
val akkaHttpVersion = "10.1.11"
lazy val root = (project in file("."))
.enablePlugins(GitVersioning, GitBranchPrompt)
.settings(
name := """elastic-scala-http""",
organization := "com.adelegue",
scalaVersion := "2.13.4",
crossScalaVersions := List("2.12.9", "2.13.4"),
resolvers ++= Seq(
Resolver.jcenterRepo
),
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % akkaVersion,
"com.typesafe.akka" %% "akka-stream" % akkaVersion,
"com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
"com.typesafe.play" %% "play-json" % "2.8.1",
"org.scala-lang.modules" %% "scala-collection-compat" % "2.1.4",
"com.typesafe.akka" %% "akka-testkit" % akkaVersion % Test,
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
"org.elasticsearch" % "elasticsearch" % "5.5.0" % Test,
"org.elasticsearch.plugin" % "transport-netty4-client" % "5.5.0" % Test,
"org.elasticsearch.plugin" % "reindex-client" % "5.5.0" % Test,
"org.slf4j" % "slf4j-api" % "1.7.25" % Test,
"org.apache.logging.log4j" % "log4j-api" % "2.8.2" % Test,
"org.apache.logging.log4j" % "log4j-core" % "2.8.2" % Test
),
parallelExecution in Test := false,
scalacOptions in Test ++= Seq("-Yrangepos", "-deprecation")
)
.settings(publishCommonsSettings: _*)
lazy val githubRepo = "larousso/elastic-scala-http"
lazy val publishCommonsSettings = Seq(
homepage := Some(url(s"https://github.com/$githubRepo")),
startYear := Some(2017),
licenses := Seq(("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0"))),
scmInfo := Some(
ScmInfo(
url(s"https://github.com/$githubRepo"),
s"scm:git:https://github.com/$githubRepo.git",
Some(s"scm:git:[email protected]:$githubRepo.git")
)
),
developers := List(
Developer("alexandre.delegue", "Alexandre Delègue", "", url(s"https://github.com/larousso"))
),
publishMavenStyle := true,
publishArtifact in Test := false,
sonatypeProfileName := "com.adelegue",
sonatypeProjectHosting := Some(GitHubHosting("larousso", "elastic-scala-http", "[email protected]"))
)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
setNextVersion,
commitNextVersion,
pushChanges
)