-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
81 lines (58 loc) · 2.77 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
import ReleaseTransformations._
name := "jmcli"
scalaVersion := "2.13.1"
organization in ThisBuild := "com.github.anicolaspp"
lazy val jmcli = project.in(file("."))
.settings(
homepage := Some(url("https://github.com/anicolaspp/jmcli")),
scmInfo := Some(ScmInfo(url("https://github.com/anicolaspp/jmcli"), "[email protected]:anicolaspp/jmcli.git")),
pomExtra := <developers>
<developer>
<name>Nicolas A Perez</name>
<email>[email protected]</email>
<organization>anicolaspp</organization>
<organizationUrl>https://github.com/anicolaspp</organizationUrl>
</developer>
</developers>,
licenses += ("MIT License", url("https://opensource.org/licenses/MIT")),
publishMavenStyle := true,
publishTo in ThisBuild := Some(
if (isSnapshot.value)
Opts.resolver.sonatypeSnapshots
else
Opts.resolver.sonatypeStaging
),
publishArtifact in Test := false,
pomIncludeRepository := { _ => true },
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies, // : ReleaseStep
inquireVersions, // : ReleaseStep
runClean, // : ReleaseStep
runTest, // : ReleaseStep
setReleaseVersion, // : ReleaseStep
commitReleaseVersion, // : ReleaseStep, performs the initial git checks
tagRelease, // : ReleaseStep
publishArtifacts, // : ReleaseStep, checks whether `publishTo` is properly set up
setNextVersion, // : ReleaseStep
commitNextVersion, // : ReleaseStep
pushChanges // : ReleaseStep, also checks that an upstream branch is properly configured
),
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/",
libraryDependencies ++= Seq(
"com.lihaoyi" %% "requests" % "0.4.6",
"com.lihaoyi" %% "ujson" % "0.9.5",
"joda-time" % "joda-time" % "2.10.5",
"ch.qos.logback" % "logback-classic" % "1.2.3",
"org.scalactic" %% "scalactic" % "3.1.1",
"org.scalatest" %% "scalatest" % "3.1.1" % "test"
)
)
//addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full)
assemblyMergeStrategy in assembly := {
case PathList("org", "apache", "spark", "unused", xs@_*) => MergeStrategy.last
case x =>
val oldStrategy = (assemblyMergeStrategy in assembly).value
oldStrategy(x)
}
assemblyJarName := s"${name.value}-${version.value}.jar"