forked from hackreduce/Hackathon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
81 lines (68 loc) · 1.75 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
version = '0.2'
// Modify these values if you want to build against different versions of Hadoop
//project.ext.set("hadoop_version", "0.20.2")
project.ext.set("hadoop_version", "1.0.1")
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'eclipse'
apply plugin: 'idea'
group = 'org.hackreduce'
sourceCompatibility = 1.6
defaultTasks "clean", "jar"
jar {
manifest {
attributes 'Implementation-Title': 'HackReduce', 'Implementation-Version': version
}
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.apache.hadoop:hadoop-core:' + hadoop_version
compile 'org.apache.hadoop:hadoop-streaming:' + hadoop_version
compile 'org.apache.hadoop:hadoop-tools:' + hadoop_version
compile 'org.apache.hadoop:hadoop-test:' + hadoop_version
}
def pomConfig = {
name 'HackReduce'
description 'HackReduce related code'
url 'http://hackreduce.org'
organization {
name 'Hopper'
url 'http://hopper.com'
}
issueManagement {
system 'Github'
url 'https://github.com/hackreduce/Hackathon/issues'
}
scm {
url "https://github.com/hackreduce/Hackathon"
connection "scm:git:http://github.com/hackreduce/Hackathon.git"
developerConnection "scm:git:[email protected]:hackreduce/Hackathon.git"
}
licenses {
license {
name 'MIT License'
url 'http://www.opensource.org/licenses/mit-license.php'
distribution 'repo'
}
}
developers {
developer {
id 'hopper-team'
name 'Hopper Team'
organization 'Hopper'
organizationUrl 'http://hopper.com'
}
}
}
configure(install.repositories.mavenInstaller) {
pom.project pomConfig
}
task sourcesJar(type: Jar, dependsOn: compileJava) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives sourcesJar
}