[info] [SUCCESSFUL ] org.scala-sbt#xsbt-proguard-plugin;0.1.3!xsbt-proguard-plugin.jar (425ms)
[info] downloading http://repo1.maven.org/maven2/net/sf/proguard/proguard-base/4.8/proguard-base-4.8.jar ...
[info] [SUCCESSFUL ] net.sf.proguard#proguard-base;4.8!proguard-base.jar (1346ms)
[info] Done updating.
添加
后,我得到了这些消息resolvers += Resolver.url("sbt-plugin-releases-scalasbt", url("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)
addSbtPlugin("org.scala-sbt" % "xsbt-proguard-plugin" % "0.1.3")
到我的.sbt/plugins/build.sbt
文件,这让我觉得proguard和它的库安装得很好。但是尝试使用proguard
或检查min-jar-path
只会给我一个错误
[error] Not a valid command: proguard (similar: reload)
或
[error] Not a valid key: min-jar-path (similar: ivy-paths)
我也试过把同样的东西放进(proj-directory)/project/build.sbt
,仍然没有运气。也试着把它放在~/.sbt/plugins/plugins.sbt
与相同的结果。如果我在SBT提示符下尝试about
,它会告诉我
[info] Available Plugins: ProguardPlugin
但我似乎根本无法运行它。我做错了什么?
步骤"将插件注入所需项目"缺失:https://github.com/adamw/xsbt-proguard-plugin#injecting-the-plugin-into-desired-project