Skip to content

Instantly share code, notes, and snippets.

@richdougherty
Created March 18, 2014 20:49
Show Gist options
  • Select an option

  • Save richdougherty/9629267 to your computer and use it in GitHub Desktop.

Select an option

Save richdougherty/9629267 to your computer and use it in GitHub Desktop.
Using a Java class for an SBT task

An example of using a Java class for an SBT build task.

We take advantage of the following fact:

The project directory is another project inside your project which knows how to build your project. The project inside project can (in theory) do anything any other project can do. Your build definition is an sbt project.

(See http://www.scala-sbt.org/release/docs/Getting-Started/Full-Def.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment