Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Deploy SBT artifacts using Eclipse Aether
branch: master

README.md

SBT aether deploy plugin

Deploys sbt-artifacts using Eclipse aether. Aether is the same library as maven itself uses, meaning that the same behaviour should be expected.

project/plugins.sbt

...
addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.13")
...

Caveat

If you see errors similar to what is described in this ticket https://github.com/arktekk/sbt-aether-deploy/issues/25 then you might want to check if you are using a global plugin.

There are known incompabilities with sbt-pgp if sbt-pgp is used as a global plugin.

Build file

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")
  }
}

aetherSettings //This can be replaced with a config as seen below.

Override default publish task

aetherPublishSettings

Override default publish-local task

aetherPublishLocalSettings

Override both publish and publish-local task

aetherPublishBothSettings

Add credentials

credentials += Credentials(Path.userHome / ".sbt" / ".credentials")

Usage

To deploy to remote Maven repository.

sbt aether-deploy

To deploy to local maven repository.

sbt aether-install

Usage if the publish/publish-local task is overriden

To deploy to remote Maven repository.

sbt publish

To deploy to local maven repository.

sbt publish-local

Proxies

Documentation for proxies can be found here

Using the plugin with sbt-pgp-plugin 0.8 or higher

You will need to add the sbt-pgp-plugin as described here.

Add this setting instead of the normal aetherSettings.

aetherSignedSettings

This should now allow aether-deploy task to work with the sbt-pgp-plugin

Overriding the publish-signed task

aetherPublishSignedSettings

Overriding the publish-signed-local task

aetherPublishSignedLocalSettings

Overriding the publish-signed and publish-signed-local task

aetherPublishSignedBothSettings
Something went wrong with that request. Please try again.