-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
108 lines (85 loc) · 2.35 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven'
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = "de.unijena.bioinf.gecko3"
version = "3.1"
mainClassName = 'de.unijena.bioinf.gecko3.Gecko3'
applicationDefaultJvmArgs = ["-Xmx6G"]
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'args4j:args4j:2.0.+'
compile 'colt:colt:1.2+'
compile 'org.apache.commons:commons-math3:3.2'
compile 'com.jgoodies:jgoodies-forms:1.7.+'
compile 'net.java.dev.glazedlists:glazedlists_java15:1.9.+'
compile 'com.lowagie:itext:4.2.1'
compile 'com.google.guava:guava:18.0'
compile 'org.slf4j:slf4j-api:1.7.7'
compile 'ch.qos.logback:logback-classic:1.1.2'
testCompile 'junit:junit:4.+'
}
jar {
manifest {
attributes 'Main-Class' : mainClassName
}
from('.') {
include('COPYING.LESSER')
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
from('.') {
include('COPYING.LESSER')
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
from('.') {
include('COPYING.LESSER')
}
}
artifacts {
archives sourcesJar
archives javadocJar
}
task createMoreStartScripts(type: CreateStartScripts) {
defaultJvmOpts = ["-Xmx2G"]
applicationName = "${startScripts.applicationName}-32bit"
mainClassName = startScripts.mainClassName
outputDir = startScripts.outputDir
classpath = startScripts.classpath
// Set as a dependent of the builtin startScripts so
// all the start scripts are generated together.
startScripts.dependsOn name
// Include the generated scripts in the distribution.
applicationDistribution.from(outputDir) {
include "${applicationName}", "${applicationName}.bat"
into 'bin'
}
applicationDistribution.from('.') {
include('COPYING.LESSER')
}
}
distZip {
archiveName "Gecko" + version + '.zip'
}
test {
useJUnit {
excludeCategories 'de.unijena.bioinf.gecko3.testUtils.SlowTest'
}
testLogging.showStandardStreams = true
//ignoreFailures = true
}
task slowTest(type: Test) {
useJUnit {
includeCategories 'de.unijena.bioinf.gecko3.testUtils.SlowTest'
}
testLogging.showStandardStreams = true
}