-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
56 lines (46 loc) · 1.58 KB
/
build.gradle
File metadata and controls
56 lines (46 loc) · 1.58 KB
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
subprojects {
version = '1.0-master'
apply plugin: 'scala'
repositories {
mavenCentral()
maven { url 'https://raw.github.com/Blackrush/photon-persist/maven-repo' }
maven { url 'https://raw.github.com/Blackrush/flatjson/maven-repo' }
}
dependencies {
compile "org.scala-lang:scala-library:${scalaStdlibVersion}"
compile "com.typesafe:scalalogging-slf4j_${scalaVersion}:${typesafeLoggingVersion}"
compile "com.twitter:util-core_${scalaVersion}:${twitterUtilVersion}"
testCompile "org.scalatest:scalatest_${scalaVersion}:${scalatestVersion}"
runtime "org.scala-lang:scala-compiler:${scalaStdlibVersion}"
}
buildscript {
repositories {
mavenCentral()
}
}
sourceSets {
main {
java.srcDirs = ['must_not_use'] // enable Zinc joint compilation
scala.srcDirs = ['main/src']
resources.srcDirs = ['main/res']
}
test {
java.srcDirs = ['must_not_use']
scala.srcDirs = ['test/src']
resources.srcDirs = ['test/res']
}
}
compileScala {
scalaCompileOptions.useAnt = false // use Zinc instead of Ant
scalaCompileOptions.additionalParameters = ['-feature']
}
test << { // scalatest support
ant.taskdef(name: 'scalatest', classname: 'org.scalatest.tools.ScalaTestAntTask', classpath: classpath.asPath)
ant.scalatest(runpath: testClassesDir, haltonfailure: 'true', fork: 'false') {
reporter(type: 'stderr')
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '1.9'
}