-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
54 lines (49 loc) · 1.83 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
import sbtrelease.ReleaseStateTransformations._
releaseTagComment := s"Setting version to v${(version in ThisBuild).value}"
releaseCommitMessage := s"Setting version to v${(version in ThisBuild).value}"
releaseNextCommitMessage := s"Setting version to v${(version in ThisBuild).value}"
lazy val root = (project in file(".")).settings(
name := "json-combiner",
version := s"${(version in ThisBuild).value}",
scalaVersion := "2.12.11",
scalacOptions += "-Ypartial-unification",
resolvers += "Artifactory" at "https://nexus.mdcatapult.io/repository/maven-public/",
credentials += {
val artifactoryPassword = sys.env.get("ARTIFACTORY_PASSWORD")
if ( artifactoryPassword.nonEmpty ) {
Credentials("Sonatype Nexus Repository Manager", "nexus.mdcatapult.io","gitlab",artifactoryPassword.get)
} else {
Credentials(Path.userHome / ".sbt" / ".credentials")
}
},
libraryDependencies ++= {
lazy val configVersion = "1.3.3"
lazy val akkaVersion = "2.5.18"
lazy val catsVersion = "1.5.0-RC1"
Seq(
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.2.3",
"com.typesafe.scala-logging" %% "scala-logging" % "3.9.0",
"com.typesafe" % "config" % configVersion,
"org.typelevel" %% "cats-macros" % catsVersion,
"org.typelevel" %% "cats-kernel" % catsVersion,
"com.github.scopt" %% "scopt" % "4.0.0-RC2",
"com.typesafe.play" %% "play-json" % "2.7.1",
"org.micchon" %% "play-json-xml" % "0.4.2"
)
}
).settings(
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
pushChanges,
setNextVersion,
commitNextVersion,
pushChanges,
)
)