-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
37 lines (28 loc) · 1.07 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
group 'moe.imvery.utils'
version '1.8'
apply plugin: 'java'
sourceCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
// http://mvnrepository.com/artifact/org.apache.poi/poi
compile group: 'org.apache.poi', name: 'poi', version: '4.1.0'
// http://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.0'
// http://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20160212'
// http://mvnrepository.com/artifact/org.skyscreamer/jsonassert
testCompile group: 'org.skyscreamer', name: 'jsonassert', version: '1.2.3'
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Xlsx2Json',
'Implementation-Version': version,
'Main-Class': 'moe.imvery.utils.xlsx2json.ExcelParserMain'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}