forked from thesamet/sbt-protoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
52 lines (36 loc) · 1.25 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
import ReleaseTransformations._
organization := "com.thesamet"
name := "sbt-protoc"
description := "SBT plugin for generating code from Protocol Buffer using protoc"
scalacOptions := Seq("-deprecation", "-unchecked", "-Xlint", "-Yno-adapted-args")
scalacOptions += {
if ((sbtVersion in pluginCrossBuild).value.startsWith("0.13")) "-target:jvm-1.7"
else "-target:jvm-1.8"
}
addSbtPlugin("org.portable-scala" % "sbt-platform-deps" % "1.0.0")
libraryDependencies ++= Seq(
"com.github.os72" % "protoc-jar" % "3.7.1",
"com.thesamet.scalapb" %% "protoc-bridge" % "0.7.13"
)
enablePlugins(SbtPlugin)
scriptedBufferLog := false
scriptedLaunchOpts += s"-Dplugin.version=${version.value}"
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
publishMavenStyle := false
bintrayRepository := "sbt-plugins"
bintrayOrganization in bintray := None
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
releaseStepCommandAndRemaining("^ test"),
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("^ publish"),
releaseStepTask(bintrayRelease),
setNextVersion,
commitNextVersion,
pushChanges
)
crossSbtVersions := Seq("0.13.18", "1.2.8")