forked from sbt/sbt-protobuf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
55 lines (40 loc) · 1.27 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
import sbtrelease.ReleaseStateTransformations._
organization := "com.github.gseitz"
name := "sbt-protobuf"
scalacOptions := Seq("-deprecation", "-unchecked", "-Xlint", "-Yno-adapted-args")
scalacOptions in (Compile, doc) ++= {
val tagOrBranch = if(isSnapshot.value) {
sys.process.Process("git rev-parse HEAD").lines_!.head
} else {
"v" + version.value
}
Seq(
"-sourcepath", baseDirectory.value.getAbsolutePath,
"-doc-source-url", "https://github.com/sbt/sbt-protobuf/blob/" + tagOrBranch + "€{FILE_PATH}.scala"
)
}
sbtPlugin := true
publishMavenStyle := false
bintrayOrganization := Some("sbt")
bintrayRepository := "sbt-plugin-releases"
bintrayPackage := "sbt-protobuf"
bintrayReleaseOnPublish := false
scriptedBufferLog := false
scriptedLaunchOpts += s"-Dplugin.version=${version.value}"
scriptedLaunchOpts += s"-Dprotoc-jar.version=3.7.1"
crossSbtVersions := Seq("0.13.18", "1.2.8")
enablePlugins(SbtPlugin)
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^ test"),
releaseStepCommandAndRemaining("^ scripted"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publish"),
setNextVersion,
commitNextVersion,
pushChanges
)