forked from openzipkin/zipkin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
62 lines (51 loc) · 1.84 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
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
}
allprojects {
apply plugin: 'idea'
}
subprojects {
apply plugin: 'java'
apply plugin: 'scala'
apply from: "$rootDir/gradle/dependencies.gradle"
apply from: "$rootDir/gradle/scalatest.gradle"
test {
maxParallelForks Runtime.runtime.availableProcessors()
}
repositories {
jcenter()
maven { url 'http://repo.typesafe.com/typesafe/releases/' }
maven { url 'https://maven.twttr.com/' }
}
dependencies {
compile "org.scala-lang:scala-library:${scalaVersion}"
// Was dependencyOverrides in SBT, will probably cause issues
compile 'org.apache.zookeeper:zookeeper:3.4.6' // internal twitter + kafka + curator
compile 'org.slf4j:slf4j-api:1.6.4' // libthrift 0.5 otherwise pins 1.5.x
// EOF dependencyOverrides
testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile "org.scalatest:scalatest_${scalaInterfaceVersion}:2.2.5"
}
// SBT migration note: end of zipkinSettings
}
// Quick hack to visualize inter-project dependencies
task dependencyReport {
description "Write the dependency graph of the zipkin-* projects in this repository into project-dependencies.dot for use with GraphViz."
doLast {
def file = new File("project-dependencies.dot")
file.delete()
file << "digraph {\n"
file << "splines=ortho\n"
rootProject.childProjects.each { item ->
def from = item.value
from.configurations.compile.dependencies
.matching { it in ProjectDependency }
.each { to -> file << ("\"${from.name}\" -> \"${to.name}\"\n")}
}
file << "}\n"
}
}