Created
August 15, 2012 17:50
-
-
Save joshserrin/3361920 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._ | |
import Keys._ | |
import sbtassembly.Plugin._ | |
import AssemblyKeys._ | |
object MyBuild extends Build { | |
val myProject = Project("my-awesome-project", file(".")) | |
.settings(assemblySettings: _*) | |
.settings(distributionSettings: _*) | |
def dist = TaskKey[Unit]("dist", "Create a distribution") | |
def distributionSettings: Seq[Setting[_]] = Seq( | |
mainClass in assembly := Some("com.cra.testharness.Launch"), | |
dist <<= (assembly in Compile, name, version) map { | |
(jar, name, version) => { | |
// populate some directory with jar and other files... | |
} | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment