forked from btraceio/btrace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (100 loc) · 3.02 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
plugins {
id "jacoco"
id "com.github.sherter.google-java-format" version "0.8"
}
project.ext.asmVersion = "8.0.1"
def env = System.getenv()
// use gradle.properties to set JAVA_HOME=<your JDK location>
def javaHome = findProperty('JAVA_HOME') ?: env['JAVA_HOME']
repositories {
mavenCentral()
jcenter()
}
subprojects {
apply from: rootProject.file('common.gradle')
}
task mergedJavadoc(type: Javadoc, description: 'Creates Javadoc from all the projects.') {
title = 'All modules'
destinationDir = new File(project.buildDir, 'merged-javadoc')
// Note: The closures below are executed lazily.
source {
subprojects*.sourceSets*.main*.allSource
}
classpath.from {
subprojects*.configurations*.compile*.copyRecursive({ !(it instanceof ProjectDependency); })*.resolve()
}
}
project(':btrace-core') {
dependencies {
// https://mvnrepository.com/artifact/org.jctools/jctools-core
compile(group: 'org.jctools', name: 'jctools-core', version: '3.0.0')
// https://mvnrepository.com/artifact/org.ow2.asm/asm
compile(group: 'org.ow2.asm', name: 'asm', version: "${rootProject.asmVersion}")
compile(group: 'org.ow2.asm', name: 'asm-util', version: "${rootProject.asmVersion}")
}
}
project(':btrace-services-api') {
dependencies {
compile project(':btrace-core')
}
}
project(':btrace-services') {
dependencies {
compile project(':btrace-core')
compile project(':btrace-services-api')
}
}
project(':btrace-statsd') {
dependencies {
compile project(':btrace-core')
compile project(':btrace-services-api')
}
}
project(':btrace-instr') {
dependencies {
compile(group: 'org.ow2.asm', name: 'asm', version: "${rootProject.asmVersion}")
compile(group: 'org.ow2.asm', name: 'asm-tree', version: "${rootProject.asmVersion}")
compile group: 'com.google.auto.service', name: 'auto-service', version: '1.0-rc4'
compile project(':btrace-core')
compile project(':btrace-runtime')
compile project(':btrace-compiler')
compile project(':btrace-statsd')
testCompile project(':btrace-client')
}
}
project(':btrace-agent') {
dependencies {
compile project(':btrace-runtime')
compile project(':btrace-instr')
}
}
project(':btrace-client') {
dependencies {
compile project(':btrace-core')
compile project(':btrace-compiler')
}
}
project(':btrace-compiler') {
dependencies {
compile files("${javaHome}/lib/tools.jar")
compile project(path: ':btrace-core')
compile project(path: ':btrace-runtime')
}
}
project(':btrace-agent') {
dependencies {
compile files("${javaHome}/lib/tools.jar")
}
}
project(':btrace-dtrace') {
dependencies {
compile project(':btrace-core')
}
}
project(':btrace-dist') {
dependencies {
compile project(':btrace-agent')
compile project(':btrace-client')
compile project(':btrace-compiler')
}
}