-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
49 lines (42 loc) · 1007 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
apply plugin: 'java'
apply plugin: 'idea'
group 'c2c-replication'
version '0.1'
repositories {
mavenCentral()
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
dependencies {
compile 'com.google.guava:guava:21.0'
compile 'net.sf.jopt-simple:jopt-simple:5.0.4'
compile 'org.rocksdb:rocksdbjni:5.5.1'
compile 'org.slf4j:slf4j-api:1.7.2'
compile 'org.slf4j:slf4j-simple:1.7.2'
compile 'org.zeroturnaround:zt-exec:1.10'
}
// delete state and intellij build directory
clean.doFirst {
delete 'state'
delete 'out'
}
// create fat jar
jar {
manifest {
attributes "Main-Class": "system.Orchestrator"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
task(run, dependsOn: 'build', type: JavaExec) {
main = 'system.Orchestrator'
classpath = sourceSets.main.runtimeClasspath
if (project.hasProperty('args')){
args project.args.split('\\s+')
}
}