-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
80 lines (65 loc) · 2.88 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
import sbtrelease._
import sbtrelease.ReleasePlugin._
import sbtrelease.ReleasePlugin.ReleaseKeys._
import sbtrelease.ReleaseStateTransformations._
import BuildSettings.{optEnv,uniqueBuildVersion,prop}
import sbt.Package.ManifestAttributes
name := "rxscala"
organization := "net.thecoda"
scalaVersion := "2.10.3"
scalacOptions := Seq("-feature", "-deprecation", "-unchecked", "-Xlint", "-encoding", "utf8")
parallelExecution in Test := true
resolvers ++= Seq(
"Maven Central" at "http://repo1.maven.org/maven2/",
"Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
"Atmos Repo" at "http://repo.typesafe.com/typesafe/atmos-releases/",
"Sonatype OSS Releases" at "http://oss.sonatype.org/content/repositories/releases/",
"Sonatype OSS Snapshots" at "http://oss.sonatype.org/content/repositories/snapshots/"
)
libraryDependencies ++= Seq(
//Reflection (for macros)
"org.scala-lang" % "scala-reflect" % "2.10.3",
//Rx
"com.netflix.rxjava" % "rxjava-core" % "0.15.1",
//
// Akka
//
"com.typesafe.akka" %% "akka-actor" % "2.2.3",
"com.typesafe.akka" %% "akka-slf4j" % "2.2.3",
"com.typesafe.akka" %% "akka-agent" % "2.2.3",
"com.typesafe.akka" %% "akka-testkit" % "2.2.3" % "it,test",
//
// Logging
//
"org.slf4j" % "slf4j-api" % "1.7.5",
"org.slf4j" % "jcl-over-slf4j" % "1.7.5",
"ch.qos.logback" % "logback-classic" % "1.0.0",
"org.codehaus.groovy" % "groovy-all" % "1.7.6",
"janino" % "janino" % "2.5.10",
//
// test and local debug:
//
"junit" % "junit" % "4.11" % "it,test",
"org.scalatest" %% "scalatest" % "2.0" % "it,test"
)
credentials += Credentials(Path.userHome / ".ivy2" / "sonatype.credentials")
credentials += Credentials(Path.userHome / ".ivy2" / "atmos.credentials")
publishMavenStyle := true
packageOptions <<= (Keys.version, Keys.name, Keys.artifact) map {
(version: String, name: String, artifact: Artifact) =>
Seq(ManifestAttributes(
"Implementation-Vendor" -> "thecoda.net",
"Implementation-Title" -> "rxscala",
"Version" -> version,
"Build-Number" -> optEnv("GO_PIPELINE_COUNTER").getOrElse("n/a"),
"Group-Id" -> name,
"Artifact-Id" -> artifact.name,
"Git-SHA1" -> Git.hash,
"Git-Branch" -> Git.branch,
"Built-By" -> "Oompa-Loompas",
"Build-Jdk" -> prop("java.version"),
"Built-When" -> (new java.util.Date).toString,
"Build-Machine" -> java.net.InetAddress.getLocalHost.getHostName
)
)
}