-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathbuild.sbt
58 lines (35 loc) · 1.43 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
organization := "me.lessis"
name := "hubcat"
version := "0.2.0-SNAPSHOT"
description := "a vvip client of the github enterprises"
libraryDependencies ++= Seq("net.databinder.dispatch" %% "dispatch-json4s-native" % "0.11.0")
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test"
// needed for java test options
fork in Test := true
// passing env vars to tests is improved in sbt 0.13.0
javaOptions in Test := Seq("GHUSER", "GHPASS").map(v => "-D%s=%s".format(v, System.getenv(v)))
if (sys.env.getOrElse("TRAVIS", "false").toBoolean) {
println("using travis")
seq(ivyLoggingLevel := UpdateLogging.Quiet,
logLevel in Global := Level.Warn,
logLevel in Compile := Level.Warn,
logLevel in Test := Level.Info)
} else seq()
crossScalaVersions := Seq("2.9.3", "2.10.2")
scalaVersion := "2.10.2"
scalacOptions := Seq(Opts.compile.deprecation)
licenses := Seq(
"MIT" ->
url("https://github.com/softprops/%s/blob/%s/LICENSE" format(name.value, version.value)))
homepage :=
Some(url("https://github.com/softprops/%s/" format(name.value)))
publishArtifact in Test := false
publishMavenStyle := true
seq(bintraySettings:_*)
bintray.Keys.packageLabels in bintray.Keys.bintray := Seq("github", "gist")
seq(lsSettings:_*)
LsKeys.tags in LsKeys.lsync := Seq("github", "gist")
seq(buildInfoSettings:_*)
sourceGenerators in Compile <+= buildInfo
buildInfoKeys := Seq[BuildInfoKey](version)
buildInfoPackage := "hubcat"