fm-sbt-s3-resolver icon indicating copy to clipboard operation
fm-sbt-s3-resolver copied to clipboard

Using the plugin from a team wide plugin we built and updating s3CredentialProvider

Open vamsiampolu opened this issue 6 years ago • 1 comments

We have a team wide plugin to define our S3 resolvers, publishTo and lock down dependency versions. I have posted a couple of questions on stackoverflow regarding this but have not been found a workable solution.

How would MyPlugin look like. What would the build.sbt for MyPlugin look like.

object MyPlugin {
  ???
}

https://stackoverflow.com/questions/54584762/sbt-fails-to-resolve-a-plugin-as-dependency

and the two questions linked within.

Also, when I tried to add it as a dependency it would not work because it could resolve the plugin. But I can find the plugin on maven repository.

vamsiampolu avatar Feb 08 '19 00:02 vamsiampolu

Here is what I use for all of our projects. It's an SBT Plugin that adds the fm-sbt-s3-resolver plugin dependency for any projects including fm-sbt-common:

https://github.com/frugalmechanic/fm-sbt-common/blob/01d96ba0fcd89ebd53c042bc072d426d8d66ecc4/build.sbt#L31

addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % "0.17.0")

I don't set the s3CredentialsProvider but I do add some global s3 resolvers that I use and I believe the s3CredentialsProvider could also be configured in here:

https://github.com/frugalmechanic/fm-sbt-common/blob/master/src/main/scala/fm/sbt/FMCommon.scala

Does that help?

tpunder avatar Feb 12 '19 18:02 tpunder