SBT Plugin for Compiling a Single File
Scala
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
project
src
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
build.sbt
scalastyle.xml
scripted.sbt

README.md

sbt-compile-quick-plugin Build Status

This project provides an SBT 0.13.9+ plugin for compiling and packaging a single file.

The implementation was based on an older implementation found here.

Setup

Add the following lines to project/plugins.sbt

addSbtPlugin("com.etsy" % "sbt-compile-quick-plugin" % "1.3.0")

sbt-compile-quick-plugin is an AutoPlugin, so there is no need to modify the build.sbt file to enable it.

Usage

You can compile a single file with the compileQuick command. It supports tab-completing the file name. You can also compile a single test file with the test:compileQuick command.

You can produce a JAR without compiling any additional files with the packageQuick command. By default this will include all class files located in compile:classDirectory. You can add additional files to be packaged by packageQuick by appending to the value of filesToPackage.