简体   繁体   中英

How could I install sbt plugin globally

I have android-sdk-plugin downloaded from github. Documentation says that I need to install plugin globally:

Install the plugin globally into ~/.sbt/plugins or ~/.sbt/0.13/plugins (for 0.12 and 0.13, respectively) addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.3.18")

But I just don't understand what should I do... just copy all cloned files of plugin to ~/.sbt/0.13/plugins ? I know that's a simple question but there is lack of documentation about global plugins and I have no idea how to do it. This is a source https://github.com/pfn/android-sdk-plugin/blob/master/README.md#usage

You want to create a file in the ~/.sbt/0.13/plugins directory, for instance:

~/.sbt/0.13/plugins/android.sbt

addSbtPlugin("com.hanhuy.sbt" % "android-sdk-plugin" % "1.3.18")

As Dale Wijnand said we need to place *.sbt file into ~/.sbt/0.13/plugins/ directory. But also we have to run 'sbt publishLocal' in order to be able to reference from that file to plugin's sources. And then run 'sbt reload' for changes to take effect.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM