forked from SeanTater/uncc2014watsonsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
141 lines (120 loc) · 4.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
apply plugin: 'java'
//apply plugin: 'scala'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'maven'
apply plugin: 'download-task'
// Meta information
mainClassName = System.getProperty("mainClass")
version = "0.4.0"
group = "edu.uncc"
// Meta-dependencies (what you need so as to run this buildscript)
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'de.undercouch:gradle-download-task:0.5'
}
}
// Dependencies and where to get them (some are nonstandard)
repositories {
mavenCentral()
maven {url "https://repo.eclipse.org/content/groups/releases/"}
maven {url "https://googledrive.com/host/0B8wOEC5-v5lXak1WSF9YRkdOZGc/"}
}
dependencies {
// Machine learning
compile group: "com.googlecode.jcsv", name: "jcsv", version: "1.4.0"
compile 'nz.ac.waikato.cms.weka:weka-stable:3.6.6'
compile group: "com.github.spullara.cli-parser", name: "cli-parser", version: "1.1"
// Statistics
compile group: "com.googlecode.json-simple", name: "json-simple", version: "1.1"
compile group: "org.apache.httpcomponents", name: "fluent-hc", version: "4.3.1"
compile group: "org.eclipse.jgit", name: "org.eclipse.jgit", version: "3.2.0.201312181205-r"
// Search Engines
compile group: "org.apache.lucene", name: "lucene-core", version: "4.7.2"
compile group: "org.apache.lucene", name: "lucene-queryparser", version: "4.7.2"
compile group: "org.apache.lucene", name: "lucene-analyzers-common", version: "4.7.2"
compile group: "org.apache.lucene", name: "lucene-highlighter", version: "4.7.2"
compile group: "lemurproject.indri", name: "indri", version: "5.6"
compile group: "com.google.api-client", name: "google-api-client", version: "1.17.0-rc"
compile 'com.google.apis:google-api-services-customsearch:v1-rev34-1.17.0-rc'
compile "com.google.http-client:google-http-client-jackson2:1.17.0-rc"
compile "org.apache.abdera:abdera-parser:1.1.1"
compile "org.jsoup:jsoup:1.7.3"
// Approximate String Matching
compile 'org.apache.commons:commons-lang3:3.2.1'
// Indri native library
// natives "libindri-jni:libindri-jni:5.6"
// Sqlite native library (but it comes in a jar)
compile "org.xerial:sqlite-jdbc:3.7.2"
// PostgreSQL
compile 'org.postgresql:postgresql:9.3-1101-jdbc41'
// OpenNLP
compile "org.apache.opennlp:opennlp-tools:1.5.3"
// Stanford CoreNLP
compile 'edu.stanford.nlp:stanford-corenlp:3.4.1'
compile 'edu.stanford.nlp:stanford-corenlp:3.4.1:models'
// WebDAV
compile 'com.github.lookfirst:sardine:5.1'
compile 'org.slf4j:slf4j-simple:1.6.1'
// UIMA for Java
compile group:'org.apache.uima', name: 'uimaj-core', version: '2.3.1'
// lightweight web framework
compile "com.sparkjava:spark-core:1.1.1"
// multimaps and many other tools
compile "com.google.guava:guava:17.0"
compile "junit:junit:4.12"
}
run {
// Allow reading from stdin
standardInput = System.in
// Find Indri
systemProperty "java.library.path", file("$projectDir/lib")
main "uncc2014watsonsim.sources.DBIndexer"
}
task(run_cache_searches, type: JavaExec) {
// Find Indri
systemProperty "java.library.path", file("$projectDir/lib")
main "uncc2014watsonsim.sources.GenerateSearchResultDataset"
}
task(run_index, type: JavaExec) {
// Find Indri
systemProperty "java.library.path", file("$projectDir/lib")
main "uncc2014watsonsim.sources.DBIndexer"
}
test {
systemProperty "java.library.path", file("$projectDir/lib")
testLogging {
exceptionFormat = 'full'
}
}
distZip {
// Creates the zipfile distributed to class
into(project.name + "-" + project.version) {
from '.'
// Uncomment to include jars in distribution
// Note this does not allow for transitive dependencies
//from configurations.runtime.allArtifacts.files
//from configurations.runtime
include '**'
exclude 'bin/'
exclude 'build/'
exclude 'data/'
exclude 'target/'
exclude 'tmp/'
}
}
eclipse {
classpath {
file.withXml {provider ->
provider.asNode().findAll { [email protected]("indri") }.each {
it.appendNode('attributes')
it.children().each {
it.appendNode('attribute', [name: 'org.eclipse.jdt.launching.CLASSPATH_ATTR_LIBRARY_PATH_ENTRY', value: "$projectDir/lib"])
}
}
}
}
}