forked from hmrc/release-versioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
34 lines (29 loc) · 1.11 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
import uk.gov.hmrc.DefaultBuildSettings._
lazy val releaseVersioning = Project("release-versioning", file("."))
.settings(scalaSettings: _*)
.settings(defaultSettings(): _*)
.settings(
scalaVersion := "2.12.14",
crossScalaVersions := Vector("2.10.7", "2.11.12", "2.12.8"),
majorVersion := 0,
isPublicArtefact := true,
libraryDependencies ++= compileDependencies ++ testDependencies,
assemblySettings
)
val compileDependencies = Seq(
"com.github.scopt" %% "scopt" % "3.7.1",
"org.typelevel" %% "cats-core" % "1.2.0"
)
val testDependencies = Seq(
"org.scalatest" %% "scalatest" % "3.1.0-M2" % Test,
"com.vladsch.flexmark" % "flexmark-all" % "0.35.10" % Test
)
val assemblySettings = Seq(
assembly / test := {},
assembly / assemblyMergeStrategy := {
case PathList("META-INF", xs @ _*) => MergeStrategy.discard
case x => (assembly / assemblyMergeStrategy).value(x)
},
Compile / assembly / artifact := (Compile / assembly / artifact).value.withClassifier(Some("assembly"))
)
addArtifact(Compile / assembly / artifact, assembly)