This repository has been archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.gradle
155 lines (128 loc) · 4.87 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/**
* Copyright (c) 2015 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
group = 'com.intel'
buildscript {
repositories {
mavenLocal()
maven { url "https://repository.cloudera.com/artifactory/cloudera-repos/" }
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://nexus.sclab.intel.com:8080/content/groups/public" }
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE")
classpath("com.google.guava:guava:18.0")
classpath("com.palantir:jacoco-coverage:0.3.0")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'project-report'
apply plugin: 'checkstyle'
apply plugin: 'pmd'
apply plugin: 'jacoco'
apply plugin: 'com.palantir.jacoco-coverage'
jacoco {
toolVersion = "0.7.6.201602180812"
}
jacocoCoverage {
reportThreshold 0.43, LINE
}
checkstyle {
toolVersion = "6.1.1"
configFile = rootProject.file('checkstyle/checkstyle.xml')
sourceSets = [sourceSets.main]
}
pmd {
toolVersion = "5.4.1"
consoleOutput = true
ruleSetConfig = resources.text.fromFile("checkstyle/pmdRuleSet.xml")
sourceSets = [sourceSets.main]
}
mainClassName = "com.intel.databackend.Application"
sourceCompatibility = 1.8
ext.cdhVersion = "cdh5.5.1"
ext.hbaseVersion = "1.0.0-$cdhVersion"
ext.hadoopVersion = "2.6.0-$cdhVersion"
jar {
baseName 'databackend'
manifest {
attributes 'Main-Class': 'com.intel.databackend.Application'
}
}
allprojects {
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}
repositories {
mavenLocal()
maven { url "https://repository.cloudera.com/artifactory/cloudera-repos/" }
maven { url "http://repo.spring.io/snapshot" }
maven { url "http://repo.spring.io/milestone" }
maven { url "http://nexus.sclab.intel.com:8080/content/groups/public" }
mavenCentral()
}
configurations {
compile.exclude module: "spring-boot-starter-tomcat"
compile.exclude group: "org.mortbay.jetty"
compile.exclude group: "tomcat"
compile.exclude module: "slf4j-log4j12"
compile.exclude group: "org.eclipse.jetty.websocket"
compile.exclude group: "javax.servlet", module: "servlet-api"
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web:1.2.5.RELEASE")
compile("org.springframework.boot:spring-boot-starter-jetty:1.2.5.RELEASE")
compile("org.springframework.boot:spring-boot-starter-log4j:1.2.5.RELEASE")
compile("org.apache.hbase:hbase:$hbaseVersion")
compile("org.apache.hbase:hbase-client:$hbaseVersion")
compile("org.apache.hbase:hbase-common:$hbaseVersion")
compile("org.apache.hadoop:hadoop-common:$hadoopVersion")
compile("com.cedarsoftware:json-io:3.1.2")
compile "org.hamcrest:hamcrest-all:1.3"
compile "com.btmatthews.hamcrest:hamcrest-matchers:1.0.1"
compile("org.trustedanalytics:hadoop-utils:0.6.11")
/*
To find proper version of Kafka for Cloudera please use following link:
http://www.cloudera.com/content/www/en-us/documentation/kafka/latest/topics/kafka_packaging.html
jar file can be found here:
https://repository.cloudera.com/artifactory/repo/org/apache/kafka/kafka-clients/
*/
compile("org.apache.kafka:kafka_2.10:0.8.2.0-kafka-1.4.0") {
exclude group: "org.apache.zookeeper", module: "zookeeper"
}
compile("org.apache.kafka:kafka-clients:0.8.2.0-kafka-1.4.0")
/* check the required version in kafka_2.10:0.8.2.0-kafka-1.4.0 pom.xml*/
compile("com.101tec:zkclient:0.3") {
exclude group: "org.apache.zookeeper", module: "zookeeper"
}
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile 'org.testng:testng:6.8.21'
testCompile "org.powermock:powermock-api-mockito:1.6.2"
testCompile "org.powermock:powermock-module-junit4:1.6.2"
testCompile "org.powermock:powermock-module-testng:1.6.2"
testCompile "org.springframework:spring-test:4.1.6.RELEASE"
testCompile "org.hamcrest:hamcrest-all:1.3"
testCompile "com.btmatthews.hamcrest:hamcrest-matchers:1.0.1"
pmd('net.sourceforge.pmd:pmd-core:5.4.1', 'net.sourceforge.pmd:pmd-java:5.4.1')
}