Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enhance build with a sbt plugin dynamically, i.e. without saving it?

Tags:

sbt

I often want to add sbt-dependency-graph-sugar to the current session. The way I do it currently is:

> reload plugins
> set addSbtPlugin("com.gilt" % "sbt-dependency-graph-sugar" % "0.7.4")
> session save
> reload return
> dependencyTree

And then reverting the change on the filesystem later. Is there a way to do this in less steps and without changing the build files?

like image 546
Dale Wijnand Avatar asked Aug 05 '14 10:08

Dale Wijnand


1 Answers

As per comments from @jsuereth:

The feature is not possible yet in sbt and there is the ticket Add plugins via a command to track it.

like image 72
2 revs Avatar answered Oct 05 '22 23:10

2 revs