My plugin depends on WHAT?
2025-02-24
The Question: how do I know which sbt plugins are being brought in by this other sbt plugin in my build?
This is something that comes up infrequently enough for me that I always remember it’s possible but infuriatingly can NEVER remember how to do it. It’s also really difficult to search for, so I spend a while feeling very frustrated with sbt, the sbt plugin that has made me ask the question, and myself.
I’m writing it down here in the hopes that I will remember I wrote it down, and have just one place on the internet to search!
The Steps:
- In an sbt console, run
reload plugins
to get into the root project’sproject/
build definition. - Once in the project build, you can run a lot of your usual commands. For this particular problem, I run
dependencyBrowseTree
(fromsbt-dependency-tree
which I have defined as a global plugin) to open a searchable tree of all project dependencies. - Once finished,
reload return
switches you back to the original build.
Pretty straightforward, just difficult to remember!