-
Notifications
You must be signed in to change notification settings - Fork 29
/
build.sbt
26 lines (24 loc) · 942 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
lazy val commonSettings = Seq(
organization in ThisBuild := "com.github.saurfang",
scalaVersion := "2.10.5",
javacOptions ++= Seq("-source", "1.7", "-target", "1.7"),
scalacOptions ++= Seq("-target:jvm-1.7", "-deprecation", "-feature"),
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.4" % "test",
git.useGitDescribe := true,
crossSbtVersions := List("0.13.16", "1.0.2")
)
lazy val root = (project in file(".")).
enablePlugins(GitVersioning).
settings(commonSettings).
settings(
sbtPlugin := true,
name := "sbt-spark-submit",
licenses += ("Apache-2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html")),
publishMavenStyle := false,
bintrayRepository := {
if(isSnapshot.value) "sbt-plugin-snapshots" else "sbt-plugin-releases"
},
bintrayOrganization := None
).
settings(scriptedSettings: _*).
settings(scriptedLaunchOpts += "-Dplugin.version=" + version.value)