-
Notifications
You must be signed in to change notification settings - Fork 56
/
build.gradle
77 lines (64 loc) · 1.67 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
66
67
68
69
70
71
72
73
74
75
76
77
plugins {
id 'java'
id 'application'
id 'jacoco'
}
version = '1.8.3'
repositories {
mavenCentral()
}
targetCompatibility = "1.8"
sourceCompatibility = "1.8"
afterEvaluate {
if(project.hasProperty("hprof")) {
applicationDefaultJvmArgs = ["-Xrunhprof:cpu=times,depth=10", "-Xmx768m"]
} else {
applicationDefaultJvmArgs = ["-Xms768m", "-Xmx8g"]
}
}
dependencies {
compile 'commons-cli:commons-cli:1.2'
compile 'org.apache.commons:commons-math3:3.6.1'
compile 'com.edropple.jregex:jregex:1.2_01'
compile('com.github.samtools:htsjdk:2.21.1') {
transitive = false
}
testCompile 'org.mockito:mockito-core:2.23.0'
testCompile 'org.testng:testng:6.9.13.6'
}
mainClassName = "com.astrazeneca.vardict.Main"
startScripts {
doLast {
unixScript.text = unixScript.text.replaceAll(/(DEFAULT_JVM_OPTS=.*)/){ all, group ->
"""${group}
if [ -n "\$${optsEnvironmentVar}" ] || [ -n "\$JAVA_OPTS" ] ; then
DEFAULT_JVM_OPTS=''
fi
"""
}
}
}
javadoc {
options.noQualifiers 'java.lang:java.io:java.util'
options.memberLevel=JavadocMemberLevel.PACKAGE
exclude '**/ConcurrentHashSet*'
exclude '**/Utils*'
exclude '**/Tuple*'
exclude '**/Main*'
}
test {
// enable TestNG support (default is JUnit)
useTestNG()
}
jar {
manifest {
attributes 'Main-Class': 'com.astrazeneca.vardict.Main'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
jacoco {
toolVersion = "0.8.2"
}
applicationDistribution.from('VarDict/teststrandbias.R','VarDict/testsomatic.R','VarDict/var2vcf_valid.pl','VarDict/var2vcf_paired.pl').into('bin')