Plugin to ease resolving dependencies from and publish to Azure BlobStorage containers, using custom url syntax blob:// (default).
Thanks to ohnosequences
gkatzioura
frugalmechanic
for the job done on other storage providers
SBT 1.1 support is available using version >= 0.10.0
:
addSbtPlugin("io.github.lukaci" %% "sbt-azureblob-resolver" % "0.10.0")
Maven Style:
resolvers += "Blob Snapshots" at "blob://youraccountname/snapshots"
Ivy Style:
resolvers += Resolver.url("Blob Snapshots", url("blob://youraccountname/snapshots"))(Resolver.ivyStylePatterns)
Maven Style:
publishMavenStyle := true
publishTo := Some("Blob Snapshots" at "blob://youraccountname/snapshots")
Ivy Style:
publishMavenStyle := false
publishTo := Some(Resolver.url("Blob Snapshots", url("blob://youraccountname/snapshots"))(Resolver.ivyStylePatterns))
blob://[ACCOUNTNAME]/[ROOT_CONTAINER]
addSbtPlugin("io.github.lukaci" %% "sbt-azureblob-resolver" % "0.10.0")
Credentials are checked in
- Environment Variable
- Specific account name property files
BLOB_CREDENTIALS=<ACCOUNT_NAME_1>:<SECRET_KEY_1>:<ACCOUNT_NAME_2>:<SECRET_KEY_2>:...
.<account_name>.blob-credentials
containing
accountKey=XXXXXX
If the default credential providers are not enough for you you can specify your own CredentialsProvider using the blobCredentialsProvider
SettingKey in your build.sbt
file:
blobCredentialsProvider := { (accountName: String) =>
...
AzureBlobStorageCredentials(name = accountName, key = "YYYY")
}
lukaci (GitHub)