-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (43 loc) · 960 Bytes
/
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
// vim: ft=groovy
plugins {
id 'java'
id 'application'
id 'maven-publish'
id 'checkstyle'
}
repositories {
flatDir {
dirs "${System.env.JAVA_LIBRARY_PATH}/java"
}
mavenCentral()
}
dependencies {
implementation 'org.apache.zookeeper:zookeeper:3.4.0'
implementation 'org.apache.hadoop:hadoop-client:2.7.3'
implementation 'com.dicl.velox:veloxdfs:1.0'
}
mainClassName = 'org.dicl.velox.benchmark.VDFSLauncher'
// The remaining part is to be compatible with Maven
jar {
manifest {
attributes(
'Main-Class': 'org.dicl.velox.benchmark.ExampleDriver'
)
}
from {
configurations.compile.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'org.dicl.velox'
artifactId = 'velox-hadoop'
version = '1.0'
from components.java
}
}
}
run.dependsOn 'jar'