This repository was archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.sbt
66 lines (52 loc) · 1.56 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
lazy val `sbt-heroku` = project in file(".")
name := "sbt-heroku"
organization := "com.heroku"
sbtPlugin := true
crossSbtVersions := Vector("0.13.18", "1.0.0")
licenses += ("MIT", url("http://opensource.org/licenses/MIT"))
scalacOptions += "-deprecation"
resolvers += Resolver.bintrayRepo("heroku", "maven")
libraryDependencies ++= Seq(
"com.heroku.sdk" % "heroku-deploy" % "2.0.16"
)
publishMavenStyle := false
// Scripted
scriptedSettings
scriptedLaunchOpts += { "-Dproject.version=" + version.value }
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-XX:MaxPermSize=256M",
"-Dheroku.uuid=" + java.util.UUID.randomUUID.toString.substring(0,15))
}
// Bintray
bintrayOrganization := Some("heroku")
bintrayRepository := "sbt-plugins"
bintrayPackage := "sbt-heroku"
bintrayReleaseOnPublish := false
// Git
val tagName = Def.setting{
s"v${if (releaseUseGlobalVersion.value) (version in ThisBuild).value else version.value}"
}
val tagOrHash = Def.setting{
if(isSnapshot.value)
sys.process.Process("git rev-parse HEAD").lines_!.head
else
tagName.value
}
releaseTagName := tagName.value
// Release
import ReleaseTransformations._
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
// releaseStepCommandAndRemaining("^ test"),
// releaseStepCommandAndRemaining("^ scripted"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publishSigned"),
releaseStepTask(bintrayRelease in `sbt-heroku`),
setNextVersion,
commitNextVersion,
pushChanges
)