-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting s3region in a multi-project build #56
Comments
Hi @tsuyoshizawa. So you say that you tried setting something like s3region := com.amazonaws.services.s3.model.Region.US_Standard and got the same error message? It shouldn't be the same if you set the region explicitly (not using a provider). Is the project as simple as you describe or are there any complications like subprojects? |
I also just realised that the Also, regarding the region setting in the aws-cli config file, it should be s3region := new com.amazonaws.regions.AwsProfileRegionProvider("my-profile") |
Yes, I got the same error message.
I am trying to use subprojects.
I use this plugin (v0.15.0) in another project with single project, it works well.
Ah, thank you. I added the profile in @laughedelic Anyway, thank you for your following. |
Now I think that it's some scoping issue. Because if you set the
P.S. Also don't hesitate to write in the gitter chat. It may be faster to resolve such issue there (if we have some common free hours between our timezones). |
@laughedelic I created a repository https://github.com/tsuyoshizawa/sbt-s3-resolver-multi-project to reproduce. Could you check the repository?
When I tried it on single project, it works fine.
There is not change about error message.
I see. Thank you for your cooperation. |
BTW, could we have a chance to change the
|
@tsuyoshizawa Thanks for putting up a demo project. So the problems are:
You can fix it by declaring common settings that you want to apply to every subproject: lazy val commonSettings = Seq(
s3region := new AwsProfileRegionProvider("my-profile")
)
lazy val root = (project in file("."))
.settings(
commonSettings,
// ...
)
.aggregate(core)
lazy val core = (project in file("core"))
.settings(
commonSettings,
name := "core"
) Check sbt docs about it. This should solve the problem.
Absolutely! Default |
Thanks! I could fix this problem.
Sure. I will create the PR. |
Cool! I'm glad that your problem got resolved 👍 |
Hello, I would like to know if this problem could be resolved in previous version of sbt (e.g. 0.13.x) ? |
Hi @krazavet. If you use sbt-0.13 and can't upgrade to sbt-1.0, you have to use an old version (0.16.0) of this plugin: resolvers += "Era7 maven releases" at "https://s3-eu-west-1.amazonaws.com/releases.era7.com"
addSbtPlugin("ohnosequences" % "sbt-s3-resolver" % "0.16.0") Then if you have a similar problem with multiproject build and the region not being set, you can still try the I also added you to the chat in case it doesn't solve your problem and you want to discuss it. |
sbt fails to load
sbt-s3-resolver
plugin.Stacktrace
The stacktrace says region is nothing from any provider.
Environment
project/plugins.sbt
.aws/credentials
build.sbt
I also tried overwriting
s3region
property in mybuild.sbt
but there was no change about the error.The text was updated successfully, but these errors were encountered: