-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
35 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
35
lazy val `sbt-release-tags-only` = project in file(".")
organization := "com.oliverlockwood"
name := "sbt-release-tags-only"
homepage := Some(url("https://github.com/sbt/sbt-release"))
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
crossSbtVersions := Vector("0.13.17", "1.1.0")
sbtPlugin := true
publishMavenStyle := false
addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.7")
// Bintray
bintrayOrganization := Some("oliverlockwood")
bintrayRepository := "sbt"
bintrayReleaseOnPublish := false
bintrayVcsUrl := Some("https://github.com/oliverlockwood/sbt-release-tags-only")
licenses += ("Apache-2.0", url("https://opensource.org/licenses/Apache-2.0"))
// Release
import sbtrelease.ExtraReleaseCommands
import ReleaseTransformations._
import TagsOnly._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
releaseStepCommand(ExtraReleaseCommands.initialVcsChecksCommand),
setVersionFromTags(releaseTagPrefix.value),
runClean,
tagRelease,
releaseStepCommandAndRemaining("^ publish"),
releaseStepTask(bintrayRelease in `sbt-release-tags-only`),
pushTagsOnly
)