mirror of https://github.com/sbt/sbt.git
Sonatype publishing
This commit is contained in:
parent
5b5210cbd8
commit
4f037768d0
23
build.sbt
23
build.sbt
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue