-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
94 lines (77 loc) · 2.69 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
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'war'
apply plugin: 'eclipse'
group = 'bio-answerfinder'
war {
archiveName = 'bio-answerfinder.war'
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.jdom:jdom:2.0.2',
'commons-cli:commons-cli:1.3.1',
'xpp3:xpp3:1.1.4c',
'edu.stanford.nlp:stanford-corenlp:3.8.0',
'edu.stanford.nlp:stanford-corenlp:3.8.0:models',
'org.apache.opennlp:opennlp-tools:1.5.3',
'org.apache.opennlp:opennlp-maxent:3.0.3',
'org.xerial:sqlite-jdbc:3.8.11.2',
'org.apache.velocity:velocity:1.7',
'org.apache.httpcomponents:httpclient:4.5.2',
'org.apache.httpcomponents:httpmime:4.5.2',
'org.jsoup:jsoup:1.8.3',
'org.json:json:20160212',
'org.apache.commons:commons-csv:1.1',
'info.debatty:java-string-similarity:0.23',
'de.sciss:ws4j:0.1.0',
'org.atteo:evo-inflector:1.2.2',
'commons-net:commons-net:3.3',
'org.mapdb:mapdb:3.0.5',
'jaxen:jaxen:1.1.6',
'net.sf.trove4j:trove4j:3.0.1',
'org.glassfish.jersey.core:jersey-server:2.28',
'org.glassfish.jersey.containers:jersey-container-servlet-core:2.28',
'org.glassfish.jersey.media:jersey-media-multipart:2.28',
'org.glassfish.jersey:jersey-bom:2.28',
'org.glassfish.jersey.containers:jersey-container-grizzly2-http:2.28',
'org.glassfish.jersey.inject:jersey-hk2:2.28',
'servletapi:servlet-api:2.4'
testCompile 'junit:junit:4.12'
}
version = "1.0"
compileJava {
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
task pubmedQACoverageEval(dependsOn: 'classes', type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'org.bio_answerfinder.evaluation.PubmedQAQueryCoverageEval'
if (project.hasProperty('pargs')) {
args(pargs.split(','))
}
}
task retrievalEval(dependsOn: 'classes', type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'org.bio_answerfinder.evaluation.DocRetrievalEvalMan'
if (project.hasProperty('pargs')) {
args(pargs.split(','))
}
}
def findJar(prefix) {
configurations.compile.filter { it.name.startsWith(prefix) }
}
task uberJar(type: Jar) {
from configurations.compile.filter({ !(it.name =~ /groovy.*\.jar/) }).collect {
it.isDirectory() ? it : zipTree(it)
}
manifest {
attributes 'Implementation-Title': 'Burak NER Toolkit',
'Implementation-Version': version
}
baseName = 'bnerkit'
exclude('')
with jar
}