View Source

{hudson-plugin-info:sbt|src=github}

{excerpt}
This plugin allows building Scala projects using [sbt|http://code.google.com/p/simple-build-tool/].
{excerpt}


h2. Configure the sbt plugin

* In order to set up sbt-plugin, you need to specify the location of the sbt launch jar. Press the *Manage Hudson* link and then the *Configure System*. You should now see the sbt configuration section where you will be asked to specify the sbt launch jar.

!sbt_hudson_config_.png!


h2. Configure your project to use sbt

* Open your project configuration and add a *Build using SBT* build step

!sbt_hudson_add_build_step.png!

* Now, add any jvm and sbt flags you need for your build, and specify which actions you want to run. Keep the *-Dsbt.log.noformat=true* sbt flag to keep the console output clean.

!sbt_hudson_actions.png!

* Once you saved the project configuration, you can run your project and watch the virtual console to see the magical sbt work.

h2. Todo
* Allow multiple sbt launchers
* Allow downloading an sbt launcher
* Find a way to publish test results when the project does not have a test listener which creates junit xml (see [Christoph Henkelmann’s Blog|http://henkelmann.eu/2010/11/14/sbt_hudson_with_test_integration])

h2. Changelog

h3. Version 1.0
* Initial release

h3. Version 1.1 (coming soon)
* [Handle multi-word actions correctly|https://github.com/hudson/sbt-plugin/pull/2] (thanks to [ijuma|https://github.com/ijuma]).