forked from oharaandrew314/TinkerTime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
65 lines (52 loc) · 1.11 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
61
62
63
64
65
apply plugin: 'java'
apply plugin: 'eclipse'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs ('src', 'Common')
exclude '**/test/**'
}
resources {
srcDir 'res'
exclude('*/Thumbs.db')
}
}
test {
java {
srcDir 'test'
}
resources {
srcDir 'testRes'
}
}
}
task unitTest( type: Test ) {
exclude 'test/integration/*'
}
compileJava {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
dependencies {
compile 'commons-io:commons-io:2.4'
compile 'com.google.code.gson:gson:2.3'
compile 'org.jsoup:jsoup:1.7.3'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.mockito:mockito-all:1.9.5'
testCompile 'junit:junit:4.11'
}
jar {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class': 'aohara.tinkertime.TinkerTime'
}
}
task release(type:Zip,dependsOn:jar) {
jar.outputs.files.each {
from it.getPath()
}
from "readme.md"
}