-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.sbt
47 lines (45 loc) · 1.59 KB
/
publish.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
val publication = "fatdynet"
val useArtifactory = false
ThisBuild / developers := List(
Developer(
id = "mihai.surdeanu",
name = "Mihai Surdeanu",
email = "[email protected]",
url = url("https://www.cs.arizona.edu/person/mihai-surdeanu")
)
)
ThisBuild / homepage := Some(url(s"https://github.com/clulab/$publication"))
ThisBuild / licenses := List(
"Apache License, Version 2.0" ->
url("http://www.apache.org/licenses/LICENSE-2.0.html")
)
ThisBuild / organization := "org.clulab"
ThisBuild / organizationHomepage := Some(url("http://clulab.org/"))
ThisBuild / organizationName := "Computational Language Understanding (CLU) Lab"
// The sonatype plugin seems to overwrite these two values.
pomIncludeRepository := { _ => false }
publishMavenStyle := true
ThisBuild / publishTo := {
if (useArtifactory) {
val artifactory = "http://artifactory.cs.arizona.edu:8081/artifactory/"
val repository = "sbt-release-local"
val details =
if (isSnapshot.value) ";build.timestamp=" + new java.util.Date().getTime
else ""
val location = artifactory + repository + details
Some(("Artifactory Realm" at location).withAllowInsecureProtocol(true))
}
else {
val nexus = "https://oss.sonatype.org/" // the standard maven repository
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
}
ThisBuild / scmInfo := Some(
ScmInfo(
url(s"https://github.com/clulab/$publication"),
s"scm:[email protected]:clulab/$publication.git"
)
)