-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
41 lines (34 loc) · 1.06 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
group 'com.cedricblondeau'
version '1.0.0'
apply plugin: 'java'
apply plugin: 'application'
sourceCompatibility = 1.7
mainClassName = "com.cedricblondeau.webpage2html.Console"
run {
if (System.getProperty("exec.args")) {
args System.getProperty("exec.args").split()
}
}
// create a single JAR with all dependencies
task fullJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': 'com.mkyong.DateUtils'
}
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'commons-codec', name: 'commons-codec', version: '1.10'
compile group: 'org.jsoup', name: 'jsoup', version: '1.8.3'
compile group: 'com.squareup.okhttp', name: 'okhttp', version: '2.4.0'
}
task wrapper(type: Wrapper) {
gradleVersion = '2.6'
}