This repository has been archived by the owner on Jul 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
build.sbt
67 lines (59 loc) · 1.83 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
import sbt._
import sbt.Keys._
lazy val buildSettings = Seq(
organization := "com.meetup",
scalaVersion := "2.11.6",
licenses += ("MIT", url("http://opensource.org/licenses/MIT")),
homepage := Some(url("http://github.com/meetup/archery")),
version := "0.4.0",
crossScalaVersions := Seq("2.10.5", "2.11.6"))
lazy val commonSettings = Seq(
scalacOptions ++= Seq(
"-deprecation",
"-encoding", "UTF-8",
"-feature",
"-language:existentials",
"-language:higherKinds",
"-language:implicitConversions",
"-language:experimental.macros",
"-unchecked",
"-Xfatal-warnings",
"-Xlint",
"-Yinline-warnings",
//"-Yno-adapted-args",
"-Ywarn-dead-code",
//"-Ywarn-numeric-widen",
//"-Ywarn-value-discard",
"-Xfuture"))
lazy val publishSettings = Seq(
bintrayOrganization := Some("meetup"))
lazy val noPublishSettings = Seq(
publish := (),
publishLocal := (),
publishArtifact := false)
lazy val archerySettings =
buildSettings ++ commonSettings ++ publishSettings
lazy val archery =
project.in(file("."))
.settings(moduleName := "aggregate")
.settings(archerySettings)
.settings(noPublishSettings)
.aggregate(core, benchmark)
lazy val core =
project
.settings(moduleName := "archery")
.settings(archerySettings)
.settings(libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "2.2.4" % "test",
"org.scalacheck" %% "scalacheck" % "1.12.2" % "test"))
lazy val benchmark =
project.dependsOn(core)
.settings(moduleName := "archery-benchmark")
.settings(archerySettings)
.settings(noPublishSettings)
.settings(Seq(
fork in run := true,
javaOptions in run += "-Xmx4G",
libraryDependencies ++= Seq(
"ichi.bench" % "thyme" % "0.1.1" from "http://plastic-idolatry.com/jars/thyme-0.1.1.jar"),
resolvers += Resolver.sonatypeRepo("releases")))