Skip to content
A simple-build-tool (sbt) plugin/processor for pulling sources for dependencies transitively. Intended for use with sbt 0.7, use update-classifiers in later versions
Scala Shell
Pull request Compare This branch is 17 commits ahead, 285 commits behind mpeltonen:sbt-0.13.
Latest commit 864591f Mar 16, 2011 OlegYch next iteration
Failed to load latest commit information.
project next iteration Mar 16, 2011
sbt-launcher renaming Feb 28, 2011
sbt-sources-core next iteration Mar 16, 2011
sbt-sources-plugin next iteration Mar 16, 2011
sbt-sources-processor next iteration Mar 16, 2011
sbt-sources-tests next iteration Mar 16, 2011
.gitignore cleanup Feb 28, 2011
LICENSE Add Odd as contributor. Aug 19, 2010
README.textile release 0.2.0 Mar 16, 2011
sbt-dbg.sh basic tests Mar 1, 2011
sbt.cmd renaming Feb 28, 2011
sbt.sh cleanup Feb 28, 2011

README.textile

Provides an sbt action to pull sources for all dependencies transitively

Usage

Tool can be used either as sbt plugin or sbt processor

Usage as plugin requires modification of your project descriptor, whereas usage as processor is non-intrusive and requires only few commands on the sbt console. Instructions for both usage scenarios below.

Usage as processor

1. Start sbt console (for any project)

2. Enter the following sbt console commands (* is part of sbt processor command syntax):

 > *olegychRepo at https://bitbucket.org/olegych/mvn/raw/default
 > *sources is com.olegych sbt-sources-processor 0.2.0
 ...
 > sources
 ...

You can also replace the default update task by issuing the following command (probably not the best idea for now):

 > *update is com.olegych sbt-sources-processor 0.2.0

To revert to default ‘update’ use this command:

 > *remove update

Check out sbt’s processor documentation for further details.

Usage as plugin

1. In your project/plugins/Plugins.scala:

import sbt._
class Plugins(info: ProjectInfo) extends PluginDefinition(info) {
  val olegychRepo = "olegychRepo" at "https://bitbucket.org/olegych/mvn/raw/default"
  val sbtSourcesPlugin = "com.olegych" % "sbt-sources-plugin" % "0.2.0"
}

2. In your project definition file:

import sbt._
class MyProject(info: ProjectInfo) extends DefaultProject(info) with ProjectWithSources {
   // ...
}

3. Run

Use update-sources task instead of update. update will delete all previously pulled sources


sbt update-sources

Contributors

Thanks to Mikko Peltonen for his sbt-idea plugin, on which this one is based.
See contributors

License

Licensed under the New BSD License. See the LICENSE file for details.

Something went wrong with that request. Please try again.