Skip to content

Instantly share code, notes, and snippets.

@ymasory
Created September 5, 2010 20:09
Show Gist options
  • Save ymasory/566283 to your computer and use it in GitHub Desktop.
Save ymasory/566283 to your computer and use it in GitHub Desktop.
import sbt._
class Project(info: ProjectInfo) extends DefaultProject(info) with ProguardProject {
//project name
override val artifactID = "myprogram"
//program entry point
override def mainClass: Option[String] = Some("com.example.MyMainClass")
//proguard
override def proguardOptions = List(
"-keepclasseswithmembers public class * { public static void main(java.lang.String[]); }",
"-dontoptimize",
"-dontobfuscate",
proguardKeepLimitedSerializability,
proguardKeepAllScala,
"-keep interface scala.ScalaObject"
)
override def proguardInJars = Path.fromFile(scalaLibraryJar) +++ super.proguardInJars
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment