You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am defining settings to be shared among multiple separate SBT projects in a custom plugin. That plugin sets up an S3 repository so that the other projects don't need to.
The custom plugin itself also depends on the S3 resolver for it's own build. Therefore, it contains two references to the S3 resolver, one in project/plugins.sbt and another in build.sbt.
Projects that make use of the custom plugin get it from a Git repository. Hence, it is always loaded as a project dependency, and not a pre-compiled JAR.
When starting any of the projects that use the custom plugin, SBT crashes with the following stack trace. Removing the custom plugin build-time dependency on the resolver (on project/plugins.sbt) fixes the crash. Using a version of the S3 resolver older than 0.12 fixes the crash (probably because that's when the custom credential provider was added).
[info] Installing the s3:// URLStreamHandler via java.net.URL.setURLStreamHandlerFactory
[info] Creating a new Ivy URLHandlerDispatcher to handle s3:// URLs
java.lang.RuntimeException: root/.:.::S3CredentialsProvider is undefined.
at scala.sys.package$.error(package.scala:27)
at sbt.Extracted$$anonfun$getOrError$2.apply(Extracted.scala:96)
at sbt.Extracted$$anonfun$getOrError$2.apply(Extracted.scala:96)
at scala.Option.getOrElse(Option.scala:120)
at sbt.Extracted.getOrError(Extracted.scala:96)
at sbt.Extracted.get(Extracted.scala:21)
at fm.sbt.S3ResolverPlugin$$anonfun$projectSettings$3$$anonfun$apply$8.apply(S3ResolverPlugin.scala:117)
at fm.sbt.S3ResolverPlugin$$anonfun$projectSettings$3$$anonfun$apply$8.apply(S3ResolverPlugin.scala:78)
at scala.Function1$$anonfun$andThen$1.apply(Function1.scala:55)
at sbt.Project$.setProject(Project.scala:341)
at sbt.Load$.buildPluginDefinition(Load.scala:887)
at sbt.Load$.buildPlugins(Load.scala:852)
at sbt.Load$.plugins(Load.scala:840)
The text was updated successfully, but these errors were encountered:
I am defining settings to be shared among multiple separate SBT projects in a custom plugin. That plugin sets up an S3 repository so that the other projects don't need to.
The custom plugin itself also depends on the S3 resolver for it's own build. Therefore, it contains two references to the S3 resolver, one in
project/plugins.sbt
and another inbuild.sbt
.Projects that make use of the custom plugin get it from a Git repository. Hence, it is always loaded as a project dependency, and not a pre-compiled JAR.
When starting any of the projects that use the custom plugin, SBT crashes with the following stack trace. Removing the custom plugin build-time dependency on the resolver (on
project/plugins.sbt
) fixes the crash. Using a version of the S3 resolver older than0.12
fixes the crash (probably because that's when the custom credential provider was added).I'm using SBT 0.13.16. I set up a repository that can reproduce the issue here by just starting
sbt
at its root: https://github.com/danielkza/fm-sbt-s3-resolver-bug-reproThe text was updated successfully, but these errors were encountered: