-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.sbt
82 lines (66 loc) · 2.13 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 ReleaseTransformations._
name := "factuality"
organization := "org.clulab"
// This is presently not compatible with Scala 2.11.
//crossScalaVersions := Seq("2.11.11", "2.12.6")
scalacOptions ++= Seq("-feature", "-unchecked", "-deprecation")
libraryDependencies ++= Seq(
"org.clulab" %% "fatdynet" % "0.2.4", // Zip functionality of 0.2.3 or higher is required for factuality-client.
// logging
"com.typesafe.scala-logging" %% "scala-logging" % "3.7.2",
"ch.qos.logback" % "logback-classic" % "1.0.10",
"org.slf4j" % "slf4j-api" % "1.7.10"
)
lazy val core = project in file(".")
lazy val `factuality-developer` = project
.dependsOn(core)
lazy val `factuality-models` = project
lazy val `factuality-client` = project
publishMavenStyle := true
// the standard maven repository
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
// let’s remove any repositories for optional dependencies in our artifact
pomIncludeRepository := { _ => false }
scmInfo := Some(
ScmInfo(
url("https://github.com/clulab/factuality"),
"scm:git:https://github.com/clulab/factuality.git"
)
)
pomExtra :=
<url>https://github.com/clulab/factuality</url>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>mihai.surdeanu</id>
<name>Mihai Surdeanu</name>
<email>[email protected]</email>
</developer>
</developers>
releaseProcess := Seq[ReleaseStep](
checkSnapshotDependencies,
inquireVersions,
runClean,
runTest,
setReleaseVersion,
commitReleaseVersion,
tagRelease,
releaseStepCommandAndRemaining("+publishSigned"),
// releaseStepCommandAndRemaining("+publishLocal"),
setNextVersion,
commitNextVersion,
releaseStepCommandAndRemaining("sonatypeReleaseAll"),
pushChanges
)