blob: 701358e8ed99a8c91aedd784a77a077acecbdd52 (
plain) (
blame)
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
|
buildscript {
dependencies { classpath 'net.saliman:gradle-cobertura-plugin:2.2.2' }
repositories { mavenCentral() }
}
apply from: '../deploy.gradle'
apply plugin: 'cobertura'
apply plugin: 'scala'
cobertura {
coverageFormats = ['html', 'xml']
coverageSourceDirs = sourceSets.main.scala.srcDirs
}
compileScala { compileScala.scalaCompileOptions.additionalParameters = ['-target:jvm-1.6', '–Xdisable-assertions'] }
compileTestScala { compileTestScala.scalaCompileOptions.additionalParameters = ['-target:jvm-1.6'] }
dependencies {
compile'org.scala-lang:scala-compiler:2.10.2'
compile 'org.scala-lang:scala-library:2.10.2'
testCompile 'com.google.caliper:caliper:0.5-rc1'
testCompile 'junit:junit:4.11'
testCompile 'org.scalatest:scalatest_2.10:2.0.M5b'
}
sourceSets {
benchmark {
output.resourcesDir "${project.buildDir}/classes/benchmark"
resources { srcDir 'source/benchmark/resource' }
scala { srcDir 'source/benchmark/scala' }
}
main {
output.resourcesDir "${project.buildDir}/classes/main"
resources { srcDir 'source/main/resource' }
scala { srcDir 'source/main/scala' }
}
test {
output.resourcesDir "${project.buildDir}/classes/test"
resources { srcDir 'source/test/resource' }
scala { srcDir 'source/test/scala' }
}
}
|