forked from datahub-project/datahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
122 lines (105 loc) · 4.92 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
120
121
122
plugins {
id "com.github.hierynomus.license" version "0.13.1"
}
apply plugin: 'idea'
apply plugin: 'license'
ext.licenseFile = file('.license_header.txt')
configurations.all {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
exclude group: 'log4j'
resolutionStrategy {
dependencySubstitution {
substitute module('org.slf4j:slf4j-log4j12') with module('ch.qos.logback:logback-classic:1.1.7')
//prefer 'log4j-over-slf4j' over 'log4j'
}
}
}
subprojects {
apply plugin: 'eclipse'
apply plugin: 'java'
apply plugin: 'com.github.hierynomus.license'
eclipse {
classpath {
file {
// work around for eclipse plugin bug
whenMerged { classpath ->
classpath.entries.removeAll { it.path.endsWith('pom') }
}
}
}
}
license {
header licenseFile
exclude "**/*.scala.html"
exclude "**/jython/requests/**"
exclude "**/pyparsing.py"
excludes(["**/*.json", "**/*.avsc", "**/*.avro", "**/*.conf", "**/*.yaml", "**/*.xml"])
excludes(["**/*.txt", "**/*.csv"])
}
repositories {
flatDir {
dirs 'extralibs'
}
mavenCentral()
maven { // this is required for hive
url 'http://conjars.org/repo'
}
maven {
url 'https://repo.typesafe.com/typesafe/maven-releases/'
}
maven {
url 'http://packages.confluent.io/maven/'
}
}
task excludegroup(type: Test) {
useTestNG() {
excludeGroups 'needConfig'
}
testLogging {
showStandardStreams = true
}
}
ext.externalDependency = ["mysql" : "mysql:mysql-connector-java:5.1.36",
"jython" : "org.python:jython-standalone:2.7.0",
"testng" : "org.testng:testng:6.9.6",
"hadoop_common" : "org.apache.hadoop:hadoop-common:2.7.1",
"hadoop_client" : "org.apache.hadoop:hadoop-mapreduce-client-core:2.7.1",
"hadoop_auth" : "org.apache.hadoop:hadoop-auth:2.7.1",
"pig" : "org.apache.pig:pig:0.15.0",
"hive_exec" : "org.apache.hive:hive-exec:1.2.1",
"avro" : "org.apache.avro:avro:1.7.7",
"avro_mapred" : "org.apache.avro:avro-mapred:1.7.7",
"joda" : "joda-time:joda-time:2.8.2",
"jsch" : "com.jcraft:jsch:0.1.53",
"http_client" : "org.apache.httpcomponents:httpclient:4.5",
"http_core" : "org.apache.httpcomponents:httpcore:4.4.1",
"json_path" : "com.jayway.jsonpath:json-path:2.0.0",
"akka" : "com.typesafe.akka:akka-actor_2.10:2.2.5",
"jgit" : "org.eclipse.jgit:org.eclipse.jgit:4.1.1.201511131810-r",
"jsoup" : "org.jsoup:jsoup:1.8.3",
"commons_io" : "commons-io:commons-io:2.4",
"jackson_databind" : "com.fasterxml.jackson.core:jackson-databind:2.6.1",
"jackson_core" : "com.fasterxml.jackson.core:jackson-core:2.6.1",
"jackson_annotations": "com.fasterxml.jackson.core:jackson-annotations:2.6.1",
"slf4j_api" : "org.slf4j:slf4j-api:1.7.21",
"slf4j_log4j" : "org.slf4j:log4j-over-slf4j:1.7.21",
"logback" : "ch.qos.logback:logback-classic:1.1.7",
"jasypt" : "org.jasypt:jasypt:1.9.2",
"spring_context" : "org.springframework:spring-context:4.1.1.RELEASE",
"spring_jdbc" : "org.springframework:spring-jdbc:4.1.1.RELEASE",
"mockito" : "org.mockito:mockito-core:1.9.5",
"play" : "com.typesafe.play:play_2.10:2.2.4",
"play_ebean" : "com.typesafe.play:play-java-ebean_2.10:2.2.4",
"play_java_jdbc" : "com.typesafe.play:play-java-jdbc_2.10:2.2.4",
"play_cache" : "com.typesafe.play:play-cache_2.10:2.2.4",
"kafka" : "org.apache.kafka:kafka_2.10:0.10.0.0",
"kafka_clients" : "org.apache.kafka:kafka-clients:0.10.0.0",
"confluent_common_cfg" : "io.confluent:common-config:3.0.0"
]
task buildWithWarning(type: JavaCompile, dependsOn: build) {
compileJava.options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.14'
}