forked from thesamet/sbt-protoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
41 lines (29 loc) · 954 Bytes
/
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
import ReleaseTransformations._
organization := "com.thesamet"
name := "sbt-protoc"
scalacOptions := Seq("-deprecation", "-unchecked", "-Xlint", "-Yno-adapted-args")
scalacOptions += "-target:jvm-1.7"
libraryDependencies ++= Seq(
"com.github.os72" % "protoc-jar" % "3.1.0.2",
"com.trueaccord.scalapb" %% "protoc-bridge" % "0.2.5"
)
sbtPlugin := true
ScriptedPlugin.scriptedSettings
scriptedBufferLog := false
scriptedLaunchOpts += s"-Dplugin.version=${version.value}"
// Release
releasePublishArtifactsAction := PgpKeys.publishSigned.value
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
ReleaseStep(action = Command.process("publishSigned", _), enableCrossBuild = true),
setNextVersion,
commitNextVersion,
ReleaseStep(action = Command.process("sonatypeReleaseAll", _), enableCrossBuild = true),
pushChanges
)