1
[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
,結果相同。如果我嘗試about
在SBT提示它告訴我
[info] Available Plugins: ProguardPlugin
然而,我似乎無法在所有運行它。我究竟做錯了什麼?
哇,多麼尷尬,我認爲這些措施是爲SBT 0.11和更早:(非常感謝你 – chrissphinx 2013-04-11 08:05:36