How to add SBT task to build.sbt that uses external dependency?
eg. I would like to write a task that uses the AWS SDK client
libraryDependencies += "aws-sdk-name" % "etc. "%etc" uploadTask := { val s3Client = new AmazonS3Client(...); s3Client.putObject(...) }
However, of course, there will be compilation errors, because the dependency will not be generated by sbt!
Documents for tasks are limited to very simple use cases, i.e. println (...).
The plugin seems a bit redundant to me for this, so I hope there is another way.
Thanks!
source share