-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
61 lines (52 loc) · 1 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
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
}
}
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
apply plugin: 'application'
version = '1.0.1'
sourceCompatibility = 1.8
mainClassName = 'com.github.dilipkrish.zip.Application'
repositories {
jcenter()
mavenCentral()
}
dependencies {
shadow 'org.tukaani:xz:1.6'
shadow 'net.sf.jopt-simple:jopt-simple:5.0.3'
shadow 'org.apache.commons:commons-compress:1.14'
}
jar {
from sourceSets.main.allSource
}
shadowJar {
from sourceSets.main.allSource
}
runShadow {
args = ["-an",
"app-name",
"-d",
"/some/folder-to-zip"]
}
distributions {
main {
contents {
from('.') {
include 'README.txt'
}
}
}
shadow {
contents {
from('.') {
include 'README.txt'
}
}
}
}