From 94e53ac64f8f7e9dd8891bca928c19b7bfe7bee5 Mon Sep 17 00:00:00 2001 From: Steven Bethard Date: Thu, 18 Jul 2019 12:33:09 -0700 Subject: [PATCH] Adds details required by Sonatype OSS. --- build.sbt | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 20ffc11..9f88ba9 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,6 @@ -name := "geonorm" organization := "org.clulab" +name := "geonorm" +version := "0.9.5" scalaVersion := "2.12.8" @@ -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:git@github.com:clulab/geonorm.git" + ) +) +developers := List( + Developer( + id = "steven.bethard", + name = "Steven Bethard", + email = "bethard@email.arizona.edu", + 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