Created
July 6, 2012 15:40
-
-
Save wcauchois/3060966 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 com.github.retronym.SbtOneJar._ | |
object BuildBroBuild extends Build { | |
val install = TaskKey[Unit]("install", "Installs the JAR and a launcher script into your homedir") | |
private def installTask = task { | |
println("Hello world!") | |
} | |
override lazy val settings = super.settings | |
++ Seq(install <<= (oneJar in Global)(installTask dependsOn(_))) | |
lazy val root = Project(id = "buildbro", | |
base = file("."), | |
settings = Project.defaultSettings) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment