Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install plugins in sbt 0.11.2?

Tags:

sbt

I want to install Lifty.

I have created c:\sbt\plugins\build.sbt with the following single line:

addSbtPlugin("org.lifty" % "lifty" % "1.7.4")

When I execute sbt lifty in the project directory, I only get the following error:

[error] Not a valid command: lifty

How do I configure sbt for the plugin?

like image 894
deltanovember Avatar asked Jan 16 '12 10:01

deltanovember


1 Answers

The global plugin definition has to go into the .sbt subdirectory of your home directory:

~/.sbt/plugins/plugin.sbt

Actually the name (plugin.sbt) does not matter as long as the suffix is .sbt.

like image 148
Heiko Seeberger Avatar answered Sep 20 '22 01:09

Heiko Seeberger