-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathbuild.gradle
59 lines (48 loc) · 1.26 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
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'application'
repositories {
mavenCentral()
}
mainClassName = "com.antigenomics.migmap.Main"
jar {
baseName = "migmap"
version = "1.0.3"
manifest {
attributes "Main-Class": mainClassName
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
sourceSets {
test {
resources {
srcDirs = ['src/test/resources/', 'src/main/resources/']
}
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.13'
compile 'org.codehaus.gpars:gpars:1.2.1'
compile 'junit:junit:4.12'
compile 'commons-cli:commons-cli:1.2'
compile 'com.milaboratory:milib:1.2'
}
test {
jvmArgs "-Xmx4G"
test {
if (!Os.isFamily(Os.FAMILY_WINDOWS)) {
environment "PATH", "$System.env.PATH:/usr/local/bin/:/usr/local/ncbi/igblast/bin/"
if (System.env.TRAVIS_BUILD_DIR) {
environment "PATH", "$System.env.PATH:$System.env.TRAVIS_BUILD_DIR"
}
}
}
addShutdownHook {
new File("data/").listFiles().findAll { it.name.startsWith("database-") }.each {
it.deleteDir()
}
}
}