-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
77 lines (57 loc) · 2.33 KB
/
build.sbt
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
import sbt.ProjectRef
name := "inquire"
version := "0.1.0"
organization := "edu.utdallas.hltri"
description := "Information Retrieval (IR) and Question Answering (Q&A) Project"
// enable publishing to maven
publishMavenStyle := true
// do not append scala version to the generated artifacts
crossPaths := false
// do not add scala libraries as a dependency!
autoScalaLibrary := false
lazy val commonSettings = Seq(
publishTo := sonatypePublishTo.value,
// Connects STDIN to sbt during forked runs
connectInput in run := true,
// Get rid of output prefix
outputStrategy in run := Some(StdoutOutput),
// When using sbt-run, fork to a new process instead of running within the sbt process
fork in run := true,
// Set default java options: enable assertions, set memory, set server mode
javaOptions ++= Seq("-ea", "-esa", "-Xmx14g", "-server"),
// Set javac options
javacOptions ++= Seq("-source", "1.8", "-target", "1.8", "-Xlint:unchecked"),
// Always export a .jar rather than .class files
exportJars := true
)
lazy val luceneVersion = "6.6.+"
// Lucene IR library
libraryDependencies ++= Seq(
"org.apache.lucene" % "lucene-core" % luceneVersion,
"org.apache.lucene" % "lucene-queryparser" % luceneVersion,
"org.apache.lucene" % "lucene-analyzers-common" % luceneVersion,
"org.apache.lucene" % "lucene-backward-codecs" % luceneVersion,
"org.apache.lucene" % "lucene-queries" % luceneVersion,
"org.apache.lucene" % "lucene-benchmark" % luceneVersion
)
// Adds @Notnull annotation
libraryDependencies += "com.google.code.findbugs" % "jsr305" % "3.0.+"
// XML parser
libraryDependencies += "org.jdom" % "jdom2" % "2.0.5"
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.5"
libraryDependencies += "org.apache.commons" % "commons-lang3" % "3.4"
libraryDependencies += "net.sf.trove4j" % "trove4j" % "3.0.3"
libraryDependencies += "cc.mallet" % "mallet" % "2.0.7"
// Simple CLI library
libraryDependencies += "info.picocli" % "picocli" % "0.9.7"
// hltri libraries
libraryDependencies ++= Seq(
"edu.utdallas.hltri" % "hltri-util" % "1.0.1",
"edu.utdallas.hltri" % "hltri-ml-api" % "1.0.0",
"edu.utdallas.hltri" % "scribe" % "0.3.1"
)
lazy val inquire = (project in file("."))
.settings(commonSettings)
lazy val `inquire-med` = (project in file("inquire-med"))
.dependsOn(inquire)
.settings(commonSettings)