-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
73 lines (56 loc) · 2.08 KB
/
build.gradle
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
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'scala'
sourceCompatibility= JavaVersion.VERSION_1_7
// See http://gradle.org/docs/current/userguide/gradle_wrapper.html
task wrap(type:Wrapper, description:"create a gradlew") {
gradleVersion = '1.0-rc-3'
}
repositories {
mavenCentral()
// For Groovy/GPars
maven {
url 'http://snapshots.repository.codehaus.org/'
}
// For Scala/Akka
maven {
url 'http://repo.typesafe.com/typesafe/releases'
}
// For Twitter Finagle/Util
maven {
url 'http://maven.twttr.com/'
}
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '12.0'
// Libraries for Google Caliper
// There is no official maven version yet so we stash the libs locally
compile fileTree(dir: 'caliper-lib', include: '*.jar')
// Libraries for Groovy
groovy group: 'org.codehaus.gpars', name:'gpars', version:'1.0-SNAPSHOT'
groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.8.6'
// Libraries needed to run the scala tools
scalaTools group: 'org.scala-lang', name:'scala-compiler', version:'2.9.1'
scalaTools group: 'org.scala-lang', name:'scala-library', version:'2.9.1'
// Libraries needed for Scala
compile group: 'org.scala-lang', name:'scala-library', version:'2.9.1'
// Libraries for Akka
compile group: 'com.typesafe.akka', name:'akka-actor', version:'2.0.1'
// Libraries for Finagle/Util
compile group: 'com.twitter', name:'util-core_2.9.1', version:'4.0.1'
}
// The benchmark requires files from Java, Scala and Groovy. Thus, it requires some
// setup to get it to compile and run
sourceSets {
benchmark {
java {
srcDir 'src/main/benchmark'
}
compileClasspath = sourceSets.main.compileClasspath + sourceSets.main.runtimeClasspath
}
}
sourceSets.benchmark.runtimeClasspath.each { it -> println it }
task(runBenchmark, dependsOn: [compileJava, compileScala, compileGroovy, compileBenchmarkJava], type: JavaExec) {
main = 'edu.illinois.nchen.benchmark.FuturesBenchmark'
classpath = sourceSets.benchmark.runtimeClasspath + sourceSets.main.runtimeClasspath
}