forked from Tapad/sbt-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
70 lines (58 loc) · 1.72 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
import sbtrelease._
import ReleasePlugin._
import ReleaseStateTransformations._
sbtPlugin := true
name := "sbt-docker-compose"
organization := "com.tapad"
scalaVersion := "2.12.14"
crossSbtVersions := Seq("1.0.0")
libraryDependencies ++= Seq(
"net.liftweb" %% "lift-json" % "3.5.0",
"org.yaml" % "snakeyaml" % "1.33",
"org.scalatest" %% "scalatest" % "3.2.14" % Test,
"org.scalatestplus" %% "mockito-3-4" % "3.2.10.0" % Test,
"org.mockito" %% "mockito-scala" % "1.17.12" % 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")
}
publishMavenStyle := true
Test / publishArtifact := 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>
}
releaseProcess := Seq(
checkSnapshotDependencies,
inquireVersions,
releaseStepCommandAndRemaining("^test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^publishSigned"),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _)),
pushChanges
)