This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.sbt
77 lines (67 loc) · 2.06 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
67
68
69
70
71
72
73
74
75
76
77
import sbt.ScriptedPlugin.{autoImport => ScriptedKeys}
lazy val root = (project in file("."))
.aggregate(plugin)
.settings(commonSettings)
.settings(unpublished)
lazy val commonSettings = Seq(
organization := "com.stripe",
scalaVersion := "2.12.4",
releasePublishArtifactsAction := PgpKeys.publishSigned.value,
useGpg := true,
pomIncludeRepository := { _ => false },
publishMavenStyle := true,
licenses := Seq("Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
homepage := Some(url("https://github.com/stripe/sbt-bazel")),
scmInfo := Some(
ScmInfo(
url("https://github.com/stripe/sbt-bazel"),
"scm:[email protected]:stripe/sbt-bazel.git"
)
),
developers := List(
Developer(
"beala-stripe",
"Alex Beal",
url("https://twitter.com/beala")
),
Developer(
"andyscott",
"Andy Scott",
url("https://twitter.com/andygscott")
)
),
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
)
lazy val unpublished = Seq(publish := {}, publishLocal := {}, publishArtifact := false)
lazy val plugin = project
.in(file("plugin"))
.enablePlugins(ScriptedPlugin)
.settings(
ScriptedKeys.scriptedBufferLog := false,
ScriptedKeys.scriptedLaunchOpts := {
ScriptedKeys.scriptedLaunchOpts.value ++
Seq("-Xmx2048M", "-Dplugin.version=" + Keys.version.value)
})
.settings(commonSettings)
.settings(name := "sbt-bazel")
.settings(sbtPlugin := true)
.settings(libraryDependencies ++= Seq(
deps.cats,
deps.catsEffect,
deps.paiges,
deps.scalacheck % Test
))
lazy val deps = new {
val cats = "org.typelevel" %% "cats-core" % "1.1.0"
val catsEffect = "org.typelevel" %% "cats-effect" % "0.10"
val paiges = "org.typelevel" %% "paiges-core" % "0.2.1"
val scalacheck = "org.scalacheck" %% "scalacheck" % "1.13.4"
}