This repository has been archived by the owner on Jul 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.sbt
68 lines (60 loc) · 1.86 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
lazy val buildSettings = Seq(
organization := "org.allenai",
crossScalaVersions := Seq("2.11.5"),
scalaVersion <<= crossScalaVersions { (vs: Seq[String]) => vs.head },
publishMavenStyle := true,
publishArtifact in Test := false,
pomIncludeRepository := { _ => false },
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")),
homepage := Some(url("https://github.com/allenai/pipeline")),
scmInfo := Some(ScmInfo(
url("https://github.com/allenai/pipeline"),
"https://github.com/allenai/pipeline.git")),
pomExtra := (
<developers>
<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}"
)
val pipeline = Project(
id = "pipeline",
settings = buildSettings,
base = file(".")
).enablePlugins(LibraryPlugin, JavaAppPackaging)
val examples = Project(
id = "examples",
base = file("examples")
).dependsOn("pipeline").settings(
publishArtifact := false,
publishTo := Some("dummy" at "nowhere"),
publish := { },
publishLocal := { }
).enablePlugins(LibraryPlugin)
name := "pipeline"
StylePlugin.enableLineLimit := false
logLevel in compile := Level.Error
import Dependencies._
dependencyOverrides += "org.scala-lang" % "scala-reflect" % "2.11.5"
libraryDependencies ++= Seq(
sprayJson,
commonsIO,
allenAiCommon,
allenAiTestkit % "test",
scalaReflection,
awsJavaSdk,
parserCombinators,
apacheCommonsLang,
apacheCompress
)
// For JavaAppPackaging:
//
// To create release zip: sbt universal:packageBin
packageName in Universal := "pipeScript"
executableScriptName := "runPipeScript"
javaOptions in Universal ++= Seq(
"-Dlogback.configurationFile=logback-pipeScript.xml"
)