forked from arielkru/badCode
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (36 loc) · 865 Bytes
/
build.gradle
File metadata and controls
45 lines (36 loc) · 865 Bytes
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
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "idea"
group = "com.mycompany.hadoopproject"
version = "1.0"
repositories {
mavenCentral()
maven {
url "https://repository.cloudera.com/artifactory/cloudera-repos/"
}
}
configurations {
provided
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
ext.hadoopVersion = "2.0.0-mr1-cdh4.0.1"
dependencies {
provided "org.apache.hadoop:hadoop-client:${hadoopVersion}"
compile "com.google.guava:guava:11.0.2"
testCompile "junit:junit:4.8.2"
}
sourceCompatibility = 1.6
targetCompatibility = 1.6
eclipse {
classpath {
defaultOutputDir = file("${buildDir}/eclipse-classes")
plusConfigurations += configurations.provided
}
}
jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}