这很有趣,但我的项目配置除了将我的项目类添加到最终 jar 之外,所做的一切都是为了生成可执行 jar:
import sbt._
class ProjectDescriptor(info: ProjectInfo) extends DefaultProject(info) with ProguardProject{
override def mainClass = Some("org.myproject.MyClass")
override def proguardOptions = List(
"-keepclasseswithmembers public class * { public static void main(java.lang.String[]); }",
"-dontoptimize",
"-dontobfuscate",
proguardKeepLimitedSerializability,
proguardKeepAllScala,
"-keep interface scala.ScalaObject"
)
val scalaLibraryPath = "<...>/project/boot/scala-2.8.0/lib"
override def proguardInJars = super.proguardInJars +++ Path.fromFile(scalaLibraryPath)
}
如何解决?