-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sc
51 lines (41 loc) · 1.36 KB
/
build.sc
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
import lib.ivy
import mill._
import mill.scalalib._
import mill.scalalib.publish._
trait SketchLibModule extends ScalaModule {
def scalaVersion = "2.12.10"
val sparkVersion = "2.4.6"
}
object agent extends ScalaModule {
def scalaVersion = "2.12.10"
}
object lib extends SketchLibModule with PublishModule {
override def ivyDeps = Agg(
ivy"net.openhft:zero-allocation-hashing:0.10.1"
)
override def compileIvyDeps = Agg(
ivy"org.apache.spark::spark-sql:$sparkVersion"
)
override def artifactName = "scaetch"
def publishVersion = "0.0.1"
def pomSettings = PomSettings(
description = "Sketches for approximate counting in streams",
organization = "com.github.patrickcording",
url = "https://github.com/patrickcording/scaetch",
licenses = Seq(License.MIT),
versionControl = VersionControl.github("patrickcording", "scaetch"),
developers = Seq(
Developer("patrickcording", "Patrick Cording", "https://github.com/patrickcording")
)
)
}
object bench extends SketchLibModule {
override def moduleDeps = Seq(lib, agent)
override def mainClass = Some("scaetch.bench.Benchmark")
override def forkArgs = Seq("-javaagent:./Agent.jar")
override def ivyDeps = Agg(
ivy"com.storm-enroute::scalameter-core:0.19",
ivy"org.apache.commons:commons-math3:3.6.1",
ivy"org.apache.spark::spark-sql:$sparkVersion"
)
}