[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
然而我似乎根本无法运行它。我做错了什么?
答案 0 :(得分:1)