Skip to content

Commit

Permalink
Adds details required by Sonatype OSS.
Browse files Browse the repository at this point in the history
  • Loading branch information
bethard committed Jul 18, 2019
1 parent 1b7d211 commit 94e53ac
Showing 1 changed file with 37 additions and 1 deletion.
38 changes: 37 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name := "geonorm"
organization := "org.clulab"
name := "geonorm"
version := "0.9.5"

scalaVersion := "2.12.8"

Expand All @@ -18,3 +19,38 @@ libraryDependencies ++= {
"org.scalatest" %% "scalatest" % "3.0.8" % Test,
)
}

// Additional metadata required by Sonatype OSS
// https://www.scala-sbt.org/1.x/docs/Using-Sonatype.html

organization := "org.clulab"
organizationName := "computational language understanding lab"
organizationHomepage := Some(url("http://clulab.org/"))

scmInfo := Some(
ScmInfo(
url("https://github.com/clulab/geonorm/"),
"scm:[email protected]:clulab/geonorm.git"
)
)
developers := List(
Developer(
id = "steven.bethard",
name = "Steven Bethard",
email = "[email protected]",
url = url("https://bethard.faculty.arizona.edu/")
)
)

description := "Geographical name normalization (a.k.a. toponym resolution)"
licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
homepage := Some(url("https://github.com/clulab/geonorm/"))

// Remove all additional repository other than Maven Central from POM
pomIncludeRepository := { _ => false }
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")
}
publishMavenStyle := true

0 comments on commit 94e53ac

Please sign in to comment.