我如何在全球范围内安装sbt插件 [英] How could I install sbt plugin globally

查看:77
本文介绍了我如何在全球范围内安装sbt插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从github下载了android-sdk-plugin.文档说我需要全局安装插件:

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

将插件全局安装到〜/.sbt/plugins或〜/.sbt/0.13/plugins(分别为0.12和0.13) addSbtPlugin("com.hanhuy.sbt"%"android-sdk-plugin"%"1.3.18")

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

但是我只是不明白该怎么办...只需将插件的所有克隆文件复制到〜/.sbt/0.13/plugins即可?我知道这是一个简单的问题,但是缺少有关全局插件的文档,我也不知道该怎么做. 这是来源 https://github.com/pfn /android-sdk-plugin/blob/master/README.md#usage

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

推荐答案

您要在~/.sbt/0.13/plugins目录中创建文件,例如:

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

这篇关于我如何在全球范围内安装sbt插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆