-
Notifications
You must be signed in to change notification settings - Fork 52
/
build.sbt
90 lines (75 loc) · 3.37 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
78
79
80
81
82
83
84
85
86
87
88
89
90
import org.allenai.plugins.CoreDependencies
lazy val buildSettings = Seq(
organization := "org.allenai.openie",
crossScalaVersions := Seq(CoreDependencies.defaultScalaVersion),
scalaVersion := crossScalaVersions.value.head,
publishMavenStyle := true,
publishArtifact in Test := false,
homepage := Some(url("https://github.com/allenai/openie-standalone")),
scmInfo := Some(ScmInfo(
url("https://github.com/allenai/openie-standalone"),
"https://github.com/allenai/openie-standalone.git")),
pomExtra := (
<developers>
<developer>
<name>Michael Schmitz</name>
</developer>
<developer>
<name>Bhadra Mani</name>
</developer>
<developer>
<id>allenai-dev-role</id>
<name>Allen Institute for Artificial Intelligence</name>
<email>[email protected]</email>
</developer>
</developers>),
bintrayPackage := s"${organization.value}:${name.value}_${scalaBinaryVersion.value}",
bintrayRepository := "maven",
// Custom OpenIE license
licenses += ("OpenIE", url("https://github.com/allenai/openie-standalone/blob/master/LICENSE")),
// The task "bintrayEnsureLicenses", provided by sbt-bintray, ensures that
// the license for this project is in a hard-coded list defined by bintry's
// Licenses object. Because "OpenIE" is not in that list, this task always
// fails causing the build to fail. So the task is redefined to do nothing.
bintrayEnsureLicenses := { }
)
lazy val openie = Project(id = "openie", base = file("."))
.settings(buildSettings)
.enablePlugins(LibraryPlugin)
.enablePlugins(DockerBuildPlugin)
libraryDependencies ++= Seq(
"ch.qos.logback" % "logback-classic" % "1.0.13",
"ch.qos.logback" % "logback-core" % "1.0.13",
"com.clearnlp" % "clearnlp" % "2.0.2",
"com.clearnlp" % "clearnlp-dictionary" % "1.0",
"com.clearnlp" % "clearnlp-general-en-dep" % "1.2",
"com.clearnlp" % "clearnlp-general-en-pos" % "1.1",
"com.clearnlp" % "clearnlp-general-en-srl" % "1.1",
"com.github.scopt" %% "scopt" % "3.4.0",
"edu.washington.cs.knowitall" % "morpha-stemmer" % "1.0.5",
"edu.washington.cs.knowitall" % "opennlp-chunk-models" % "1.5",
"edu.washington.cs.knowitall" % "opennlp-postag-models" % "1.5",
"edu.washington.cs.knowitall" % "opennlp-tokenize-models" % "1.5",
"edu.washington.cs.knowitall" % "reverb-core" % "1.4.3",
"net.databinder" %% "unfiltered-filter" % "0.7.1",
"net.databinder" %% "unfiltered-jetty" % "0.7.1",
"net.databinder.dispatch" %% "dispatch-core" % "0.11.0",
"org.allenai.openregex" %% "openregex-scala" % "1.1.3",
"org.apache.opennlp" % "opennlp-tools" % "1.5.3" exclude("net.sf.jwordnet", "jwnl"),
"org.scalaz" %% "scalaz-core" % "7.0.9",
"org.slf4j" % "slf4j-api" % "1.7.5",
"nl.jqno.equalsverifier" % "equalsverifier" % "2.1" % "test",
"org.scalatest" %% "scalatest" % "2.2.6" % "test",
"org.specs2" % "specs2_2.11" % "2.3.13" % "test"
)
scalacOptions ++= Seq("-unchecked", "-deprecation")
javaOptions += "-Xmx4G"
javaOptions += "-XX:+UseConcMarkSweepGC"
fork in run := true
fork in Test := true
mainClass := Some("edu.knowitall.openie.OpenIECli")
// forward stdin/out to fork, so the OpenIE CLI can be run in sbt.
connectInput in run := true
// The style warning "Line is more than 100 characters long" appears in
// hundreds of places and is not very important in this codebase at the moment.
StylePlugin.enableLineLimit := false