Created
September 5, 2010 20:09
-
-
Save ymasory/566283 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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