resolvers += "Era7 maven releases" at "https://s3-eu-west-1.amazonaws.com/releases.era7.com" addSbtPlugin("ohnosequences" % "sbt-s3-resolver" % "0.16.0")
scalaVersion := "2.12.3", I guess, you have it in your
build.sbt, which is irrelevant for the plugin. Scala version which is used for the plugins is determined by the version of sbt:
I'm facing problems with resolving dependencies from S3.
~/.aws/config like this:
[default] region = eu-central-1 output = json [my-project] region = eu-central-1
~./aws/credentials like this
[my-project] aws_access_key_id = A... aws_secret_access_key = X...
(I also tried to add empty [default] section here.
aws s3 ls s3://releases.my-project.io/some-ivy-file.ivy --profile my-project returns me list of files.
sbt can't resolve deps.
I also tried to
export AWS_PROFILE=my-project without any luck.
Any suggestions? Thanks in advance
awsProfilesetting affected only credentials, not the region (hence, as @michaelahlers says, you have to set the region explicitly). In the newer versions it has been fixed, but it's available only for sbt-1.x
aws s3 cp
Thank you very much @laughedelic , I understand now and I will use this plugin, but for more information detail, I would like to know why is this, maybe it is because SBT expects a dependency server configured as a dependency management like artifactory, and S3 it's obviusly not configured as a dependency management out of the box?
Thanks in advance
project/build.properties) or use an older version of this plugin (not recommended). See the installation docs.