This repository has been archived by the owner on May 29, 2020. It is now read-only.
forked from valotrading/stirling
/
build.sbt
50 lines (38 loc) · 1.67 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
organization := "stirling"
name := "stirling"
version := "0.0.5"
scalaVersion := "2.9.1"
resolvers ++= Seq(
"laughingpanda" at "http://www.laughingpanda.org/maven2/",
"Typesafe Repository (releases)" at "http://repo.typesafe.com/typesafe/releases/"
)
libraryDependencies ++= Seq(
"commons-lang" % "commons-lang" % "2.4",
"jline" % "jline" % "0.9.94",
"joda-time" % "joda-time" % "1.5.2",
"log4j" % "log4j" % "1.2.16",
"org.jdave" % "jdave-junit4" % "1.1" % "test",
"org.jmock" % "jmock" % "2.5.1" % "test",
"org.mockito" % "mockito-core" % "1.9.0" % "test",
"org.mongodb" % "mongo-java-driver" % "1.4",
"org.scalatest" %% "scalatest" % "1.6.1" % "test",
"silvertip" % "silvertip" % "0.2.1"
)
testFrameworks += new TestFramework("org.jdave.sbt.JDaveFramework")
seq(com.github.retronym.SbtOneJar.oneJarSettings: _*)
artifactPath in com.github.retronym.SbtOneJar.oneJar := new File("stirling.jar")
mainClass in com.github.retronym.SbtOneJar.oneJar := Some("stirling.fix.examples.console.ConsoleClient")
TaskKey[File]("make-perftest") <<= (baseDirectory, fullClasspath in Runtime) map { (base, classpath) =>
val template = """|#!/bin/sh
|JARS="%s"
|OPTS="-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC"
|java $OPTS -classpath "$JARS" %s $@""".stripMargin
val mainClassName = "stirling.fix.performance.PerformanceTest"
val classpathList = classpath.files.absString
val outputFile = base / "scripts/perftest"
IO.write(outputFile, template.format(classpathList, mainClassName))
outputFile.setExecutable(true)
outputFile
}
publishTo := Some(Resolver.file("GitHub Pages", file("../stirling-gh-pages/maven/")))
publishArtifact in (Compile, packageDoc) := false