I have a big project with many plugins. I think some of the resolvers are been added by some of the plugins. Is there a way to see what is there in the list of resolvers? (and how there are ordered?)
sbt resolver is the configuration for repository that contains jars and their dependencies. for example the below is a resolver definition for a repository called Sonatype and it points at snapshot releases (dev versions) resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
The publishLocal action is used to publish your project to your Ivy local file repository, which is usually located at $HOME/. ivy2/local/ . You can then use this project from other projects on the same machine.
Plugins can be installed for all your projects at once by declaring them in $HOME/. sbt/1.0/plugins/ . $HOME/. sbt/1.0/plugins/ is an sbt project whose classpath is exported to all sbt build definition projects.
You can use Pretty Clean to clean the all of dev tools caches including SBT. PrettyClean also cleans the SBT project's target folder.
>sbt
>show fullResolvers //list all *resolvers* in project,
>show resolvers //list added *resolvers*
and you also can use inspect
to replace show
, like: inspect resolvers
.
The order is in a ArrayBuffer
. if you want to change the order, maybe this article is helpful:
http://www.scala-sbt.org/0.13.5/docs/Detailed-Topics/Library-Management.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With