-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.sbt
64 lines (61 loc) · 2.05 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
name := """pagelets"""
import ReleaseTransformations._
lazy val root = (project in file(".")).
settings(Seq(
organization := "org.splink",
scalaVersion := "2.13.6",
libraryDependencies ++= Seq(
"org.scala-lang" % "scala-reflect" % scalaVersion.value,
"commons-codec" % "commons-codec" % "1.9",
"org.scalatestplus.play" %% "scalatestplus-play" % "5.1.0" % Test,
"org.scalamock" %% "scalamock" % "4.4.0" % Test,
"org.mockito" % "mockito-core" % "1.10.19" % Test,
"ch.qos.logback" % "logback-classic" % "1.1.7" % Test,
"com.typesafe.play" %% "play" % "2.8.8"
),
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-feature",
"-language:implicitConversions",
"-language:higherKinds",
"-language:existentials")
) ++ publishSettings)
lazy val publishSettings = Seq(
releaseCrossBuild := true,
crossScalaVersions := Seq("2.12.15", "2.13.6"),
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
},
licenses := Seq("Apache2 License" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("https://github.com/splink/pagelets")),
scmInfo := Some(ScmInfo(url("https://github.com/splink/pagelets"), "scm:git:[email protected]:splink/pagelets.git")),
pomExtra :=
<developers>
<developer>
<id>splink</id>
<name>Max Kugland</name>
<url>http://splink.org</url>
</developer>
</developers>,
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("+test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
setNextVersion,
commitNextVersion,
releaseStepCommandAndRemaining("sonatypeReleaseAll"),
pushChanges
)
)