-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
46 lines (33 loc) · 1.14 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
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'application'
mainClassName = 'com.github.autoftp.Main'
group 'com.github.autoftp'
version '0.6'
repositories { mavenCentral() }
dependencies {
compile 'joda-time:joda-time:2.3'
compile 'commons-configuration:commons-configuration:1.10'
compile 'commons-io:commons-io:2.4'
compile 'jline:jline:2.11'
compile 'org.apache.httpcomponents:httpclient:4.4'
compile files('lib/JFTP-0.1.jar')
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'junit:junit:4.11'
runtime 'commons-collections:commons-collections:3.2.1'
runtime 'commons-lang:commons-lang:2.6'
runtime 'commons-logging:commons-logging:1.1.1'
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
task autoFtpJar(type: Jar, dependsOn: 'build') {
from files(sourceSets.main.output.classesDir)
from files(sourceSets.main.output.resourcesDir)
from {configurations.compile.collect {zipTree(it)}}
from {configurations.runtime.collect {zipTree(it)}}
manifest {
attributes 'Main-Class': 'com.github.autoftp.Main'
}
}