Deploys sbt-artifacts using Sonatype aether. Aether is the same library as maven itself uses, meaning that the same behaviour should be expected.
...
addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.6")
...
publishTo <<= (version: String) {
if (version.endsWith("SNAPSHOT") {
Some("Sonatype Nexus Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")
}
else {
Some("Sonatype Nexus Staging" at "https://oss.sonatype.org/service/local/staging/deploy/maven2")
}
}
seq(aetherSettings: _*)
seq(aetherPublishSettings: _*)
credentials += Credentials(Path.userHome / ".sbt" / ".credentials")
sbt aether-deploy
sbt publish