-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
52 lines (43 loc) · 1.63 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
apply plugin: 'java'
apply plugin: 'eclipse'
//Framework version and name
version = '0.0.1'
repositories {
mavenCentral()
jcenter()
}
dependencies {
compile 'com.squareup.okhttp3:okhttp:3.10.0'
compile 'org.greenrobot:eventbus:3.1.1'
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
compile group: 'net.coobird', name: 'thumbnailator', version: '0.4.8'
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
//Compile with android-specific sqlite driver
if(project.getParent() != null && project.getParent().findProperty("isAndroidProject") == true) {
compile 'org.sqldroid:sqldroid:1.0.3'
} else {
compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.23.1'
}
compile group: 'net.sf.py4j', name: 'py4j', version: '0.10.7'
testCompile 'junit:junit:4.12'
}
jar {
manifest {
attributes 'Implementation-Title': project.name,
'Implementation-Version': version,
'Main-Class': 'vstore.framework.ServiceRunner'
}
}
//Needed to add all dependencies to the final jar file
task taskfatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': project.name,
'Implementation-Version': version,
'Main-Class': 'vstore.framework.ServiceRunner'
}
baseName = project.name + '-all-deps'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}