forked from allenai/pipeline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sbt
82 lines (69 loc) · 1.91 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
import Dependencies._
import ReleaseKeys._
// Override the problematic new release plugin.
import sbtrelease.ReleaseStateTransformations._
releaseProcess := Seq(
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
publishArtifacts,
setNextVersion,
commitNextVersion,
pushChanges
)
val pipeline = Project(
id = "pipeline",
base = file(".")
)
val examples = Project(
id = "examples",
base = file("examples")
).dependsOn("pipeline")
StylePlugin.enableLineLimit := false
logLevel in compile := Level.Error
organization := "org.allenai"
crossScalaVersions := Seq("2.11.5")
scalaVersion <<= crossScalaVersions { (vs: Seq[String]) => vs.head }
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
licenses := Seq("Apache 2.0" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
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>
)
// Enable the LibraryPlugin for release workflow support
enablePlugins(LibraryPlugin)
PublishTo.ai2Public
dependencyOverrides += "org.scala-lang" % "scala-reflect" % "2.11.5"
libraryDependencies ++= Seq(
sprayJson,
commonsIO,
allenAiCommon,
allenAiTestkit % "test",
scalaReflection,
awsJavaSdk,
parserCombinators,
apacheCommonsLang,
apacheCompress
)
// To create release zip: sbt universal:packageBin
enablePlugins(JavaAppPackaging)
packageName in Universal := "pipeScript"
executableScriptName := "runPipeScript"
javaOptions in Universal ++= Seq(
"-Dlogback.configurationFile=logback-pipeScript.xml"
)