This repository has been archived by the owner on Apr 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
build.sbt
81 lines (65 loc) · 2.01 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
81
import sbtrelease._
import ReleasePlugin._
import ReleaseStateTransformations._
sbtPlugin := true
name := "sbt-docker-compose"
organization := "com.tapad"
scalaVersion := "2.10.6"
crossSbtVersions := Seq("0.13.16", "1.0.0")
libraryDependencies += {
val liftJsonVersion = CrossVersion.partialVersion(scalaVersion.value) match {
case Some((2, n)) if n < 12 => "2.5.4"
case _ => "3.0.1"
}
"net.liftweb" %% "lift-json" % liftJsonVersion
}
libraryDependencies ++= Seq(
"org.yaml" % "snakeyaml" % "1.15",
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
"org.mockito" % "mockito-all" % "1.9.5" % "test")
publishTo := {
val nexus = "https://oss.sonatype.org"
if (isSnapshot.value)
Some("snapshots" at s"$nexus/content/repositories/snapshots")
else
Some("releases" at s"$nexus/service/local/staging/deploy/maven2")
}
useGpg := true
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := {
<url>http://github.com/Tapad/sbt-docker-compose</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://opensource.org/licenses/BSD-3-Clause</url>
</license>
</licenses>
<scm>
<url>[email protected]:Tapad/sbt-docker-compose.git</url>
<connection>scm:git:[email protected]:Tapad/sbt-docker-compose.git</connection>
</scm>
<developers>
<developer>
<id>[email protected]</id>
<name>Kurt Kopchik</name>
<url>http://github.com/kurtkopchik</url>
</developer>
</developers>
}
scalariformSettings
releaseNextVersion := { (version: String) => Version(version).map(_.bumpBugfix.asSnapshot.string).getOrElse(versionFormatError) }
releaseProcess := Seq(
checkSnapshotDependencies,
inquireVersions,
releaseStepCommandAndRemaining("^test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^publishSigned"),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)