Skip to content

Commit 4db5d8e

Browse files
committed
get the perf source working
1 parent ef12fe3 commit 4db5d8e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

build.gradle

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,20 @@ subprojects {
4444
//include /src/examples folder
4545
examples
4646
//include /src/perf folder
47-
// perf //-> Not working so commented out
47+
perf {
48+
java {
49+
srcDir 'src/perf/java'
50+
compileClasspath += main.output
51+
runtimeClasspath += main.output
52+
}
53+
}
4854
}
49-
55+
56+
dependencies {
57+
perfCompile 'com.google.caliper:caliper:1.0-beta-1'
58+
perfRuntime 'com.sun.jersey:jersey-core:1.11'
59+
}
60+
5061
tasks.build {
5162
//include 'examples' in build task
5263
dependsOn(examplesClasses)
@@ -58,6 +69,7 @@ subprojects {
5869
classpath {
5970
// include 'provided' dependencies on the classpath
6071
plusConfigurations += configurations.provided
72+
plusConfigurations += configurations.perfCompile
6173

6274
downloadSources = true
6375
downloadJavadoc = true
@@ -68,6 +80,8 @@ subprojects {
6880
module {
6981
// include 'provided' dependencies on the classpath
7082
scopes.PROVIDED.plus += configurations.provided
83+
// TODO not sure what to add it to
84+
//scopes.PROVIDED.plus += configurations.perfCompile
7185
}
7286
}
7387
}

0 commit comments

Comments
 (0)