Closed willeeh closed 10 years ago
Hi @willeeh!
I guess, it's just because the settings is called s3CredentialsFile
with capital C
— before sbt-13 it was s3-credentials-file
, so now it has transformed to camelCase ")
But another thing is that you should add the plugin not in <your_project>/build.sbt
(may be I just misunderstood you), but in <your_project>/project/plugins.sbt
.
Tell me if it helps or the problem remains :wink:
Hi @laughedelic,
Exactly I had added the plugin in <project>/project/plugins.sbt
as you say.
Now, I changed:
s3credentialsFile := Some("/Users/guillermoceballos/projects/g4l-web/s3-credentials.properties")
to
s3CredentialsFile := Some("/Users/guillermoceballos/projects/g4l-web/s3-credentials.properties")
And still not working, same error. :angry: Any ideas?
Show me please the output of
$ sbt
...
> reload plugins
> update
> reload return
> inspect s3CredentialsFile
I'm inside of a Play2 environment. I guess I'm using the sbt command provided by Play with no direct access to sbt command. Do you know how to check this out inside Play?
Sorry, but I've never used Play, so I even don't know what is this Play environment.. It seems to me a bit strange that you can just launch sbt in your project. But anyway, the point was that maybe you need to clean & reload your project, because it seems that it doesn't see the plugin.
I'll look into this issue and I'll let you know if it finally works in some way
@laughedelic Finally I've sort it out! but I just realized my repository is a maven artifact and just wanna download/resolve the library I need. README says:
This plugin can publish maven or ivy artifacts, but it can resolve only ivy-style artifacts. If your maven artifacts are public, you can resolve them using usual sbt resolvers just transforming your s3://my.bucket.com to
"My S3 bucket" at "http://my.bucket.com.s3.amazonaws.com"
How could I do this? I've tried this:
resolvers <++= s3credentials { cs => Seq(
S3Resolver("Releases resolver", "My S3 bucket" at "http://my.releasebucket.com.s3.amazonaws.com")
, S3Resolver("G4L Snapshots resolver", "My S3 bucket" at "http://my.snapshotbucket.com.s3.amazonaws.com")
) map {r => cs map r.toSbtResolver} flatten
}
But I got a compilation error due your method signature.
Thanks for your help!
@willeeh, if you have public maven artifacts in S3 you don't need this plugin at all. Sorry if the readme is written unclear, I'll try to fix it.
You can try just this (without sbt-s3-resolver):
resolvers ++= Seq(
"My releases S3 bucket" at "http://my.releasebucket.com.s3.amazonaws.com",
"My snapshots S3 bucket" at "http://my.snapshotbucket.com.s3.amazonaws.com"
)
(names should be different)
I'll try this, thanks. Anyway it would be nice to have the repository under security, are you planning to resolve s3 maven artifacts with security at some point?
Well, we have an open issue #7 about that. But so far I don't know how to do that and I don't have much time for investigating it. So at some point it should be resolved, but nobody knows when. Anyway, if you know something about how to do that, pull-requests are welcome :wink:
So far I'm alright with the public artifact but i'd be nice. I'll have a look in a few days if I find a good way to deal with it I'll let you know.
Hi,
I'm integrating this pretty plugin in my Play build configuration like this:
Then, I've created a file called
credentials.sbt
and filled it:When I run play I got a error:
Apparently s3credentialsFile is not found. Does anyone have a clue about this issue?