Sonatype publishing

This commit is contained in:
Eugene Yokota 2021-05-01 16:39:26 -04:00
parent 5b5210cbd8
commit 4f037768d0
1 changed files with 23 additions and 0 deletions

View File

@ -20,3 +20,26 @@ lazy val root = (project in file("."))
},
scriptedBufferLog := false,
)
ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/sbt/sbt-projectmatrix"),
"scm:git@github.com:sbt/sbt-projectmatrix.git"
)
)
ThisBuild / developers := List(
Developer(
id = "eed3si9n",
name = "Eugene Yokota",
email = "@eed3si9n",
url = url("https://eed3si9n.com/")
)
)
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishTo := {
val nexus = "https://oss.sonatype.org/"
val v = (ThisBuild / version).value
if (v.endsWith("-SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
ThisBuild / publishMavenStyle := true