-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
115 lines (88 loc) · 2.74 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.3.1'
}
}
repositories {
mavenCentral()
}
subprojects {
group 'com.beabloo.bigdata'
version '1.0-SNAPSHOT'
apply plugin: 'maven'
apply plugin: 'java'
sourceCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
jcenter()
maven {
url = "http://packages.confluent.io/maven/"
}
}
project.ext {
hadoopVersion = '2.7.1'
avroVersion = '1.7.7'
jacksonVersion = '2.7.3'
kafkaVersion = '0.9.0.0'
kafkaArtifact = 'kafka_2.10'
// kafka artifact indicated which scala version has been used to compile it
scalaVersion = '2.10.6'
kryoVersion = '3.0.3'
stormVersion = '1.0.0'
servletApiVersion = '3.1.0'
zookeeperVersion = '3.4.6'
prometheusVersion = '0.0.10'
}
configurations {
provided
compile.extendsFrom provided
}
buildscript {
// configurations.create('buildscript')
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
//buildscript 'com.beabloo.basegradlescripts:base-script-java:RB-SNAPSHOT'
//ant.unjar src: configurations.buildscript.singleFile, dest: '.gradle'
classpath 'net.saliman:gradle-cobertura-plugin:2.3.1'
}
}
// apply from: '.gradle/java/base-script-java.gradle'
dependencies {
// fileutils dependencies
compile 'commons-io:commons-io:2.4'
compile "com.fasterxml.jackson.core:jackson-core:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
compile "org.hibernate:hibernate-validator:5.2.4.Final"
compile 'org.hibernate:hibernate-validator-annotation-processor:5.2.4.Final'
compile "javax.el:javax.el-api:2.2.4"
compile "org.glassfish.web:javax.el:2.2.4"
}
task allDeps(type: DependencyReportTask) {}
}
allprojects {
apply plugin: 'net.saliman.cobertura'
}
task dependencyReport {
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"
}
}