Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SBT: is there a way to print the list of resolvers?

Tags:

scala

sbt

ivy

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?)

like image 454
Daniel Avatar asked Dec 12 '16 03:12

Daniel


People also ask

What are resolvers in sbt?

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"

What is publishLocal?

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.

Where are sbt plugins stored?

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.

How do I clear my sbt cache?

You can use Pretty Clean to clean the all of dev tools caches including SBT. PrettyClean also cleans the SBT project's target folder.


1 Answers

>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

like image 79
chengpohi Avatar answered Oct 03 '22 18:10

chengpohi