Skip to content

Instantly share code, notes, and snippets.

@wcauchois
Created July 6, 2012 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wcauchois/3060966 to your computer and use it in GitHub Desktop.
Save wcauchois/3060966 to your computer and use it in GitHub Desktop.
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