This repository has been archived by the owner on May 23, 2023. It is now read-only.
/
Build.scala
36 lines (33 loc) · 1.69 KB
/
Build.scala
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
import sbt._
import sbt.Keys._
import akka.sbt.AkkaKernelPlugin
import akka.sbt.AkkaKernelPlugin.{ Dist, outputDirectory, distJvmOptions, additionalLibs}
object AkkaClusterTestappBuild extends Build {
val akkaVersion = "2.3-20131025-230950"
//val akkaVersion = "2.3-SNAPSHOT" // 3bdac87
lazy val akkaOpsworks = Project(
id = "akka-cluster-testapp",
base = file("."),
settings = Project.defaultSettings ++ AkkaKernelPlugin.distSettings ++ Seq(
name := "akka-cluster-testapp",
organization := "com.typesafe.akka",
version := "0.1-SNAPSHOT",
scalaVersion := "2.10.2",
scalacOptions in Compile ++= Seq("-encoding", "UTF-8", "-target:jvm-1.6", "-deprecation", "-feature", "-unchecked", "-Xlog-reflective-calls", "-Xlint"),
javacOptions in Compile ++= Seq("-source", "1.6", "-target", "1.6", "-Xlint:unchecked", "-Xlint:deprecation"),
// this is only needed while we use timestamped snapshot version of akka
resolvers += "Akka Snapshot Repository" at "http://repo.akka.io/snapshots/",
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-cluster" % akkaVersion,
"com.typesafe.akka" %% "akka-contrib" % akkaVersion,
"com.typesafe.akka" %% "akka-kernel" % akkaVersion,
"com.typesafe.akka" %% "akka-slf4j" % akkaVersion,
"ch.qos.logback" % "logback-classic" % "1.0.7",
"org.fusesource" % "sigar" % "1.6.4",
"com.amazonaws" % "aws-java-sdk" % "1.4.2.1"),
mainClass in (Compile, run) := Some("testapp.Main"),
distJvmOptions in Dist := "-Xms256M -Xmx1024M -XX:-HeapDumpOnOutOfMemoryError",
additionalLibs in Dist := file("sigar").listFiles.filter(f => !f.isDirectory)
)
)
}